Advertisement
Guest User

Untitled

a guest
May 6th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. PUBLIC:LobbyUpdate(playerid)
  2. {
  3. if(gPlayerLogged[playerid] != 1) return 1;
  4.  
  5. for(new i = 0; i < MAX_PLAYERS; i++)
  6. {
  7. if(!IsPlayerNPC(i)) continue;
  8. if(!IsPlayerConnected(i)) continue;
  9. if(Derby[i] == 0) continue;
  10. survive = i;
  11. printf("Survive: %i", survive);
  12. }
  13.  
  14. if(!IsPlayerInAnyVehicle(playerid) && Derby[playerid] == 1)
  15. {
  16. RemovePlayerFromMap(playerid);
  17. }
  18. return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement