Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define IsPlayerConnected(%0) _: ((Conectado [%0 / cellbits] & Bits: (1 << (%0 % cellbits))) != Bits:false)
- new Bits:Conectado[(((MAX_PLAYERS) + cellbits) / cellbits)];
- OnPlayerConnected(playerid)
- {
- return Conectado [playerid / cellbits] |= Bits: (1 << (playerid % cellbits));
- }
- OnPlayerDisconnected(playerid)
- {
- return Conectado[playerid / cellbits] &= Bits: ~(1 << (playerid % cellbits));
- }
- // Por Bruno Silva
- // www.ips-team.blogspot.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement