Advertisement
Guest User

Untitled

a guest
Aug 18th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. if(strcmp(cmdtext, "/respawn", true) == 0 && IsPlayerAdmin(playerid))
  2. {
  3. for(new v;v < MAX_VEHICLES;v++)
  4. {
  5. new occupied;
  6. for(new p;p < MAX_PLAYERS;p++)
  7. {
  8. if( !IsPlayerConnected(p) ) continue;
  9. if( IsPlayerInVehicle(p, v) )
  10. {
  11. occupied = 1;
  12. break;
  13. }
  14. }
  15. if( !occupied ) SetVehicleToRespawn(v);
  16. }
  17.  
  18. SendClientMessageToAll(0xFF0000AA, "Administrator przywrócił wszystkie pojazdy na miejsce spawnu!");
  19. return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement