Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmdtext, "/respawn", true) == 0 && IsPlayerAdmin(playerid))
- {
- for(new v;v < MAX_VEHICLES;v++)
- {
- new occupied;
- for(new p;p < MAX_PLAYERS;p++)
- {
- if( !IsPlayerConnected(p) ) continue;
- if( IsPlayerInVehicle(p, v) )
- {
- occupied = 1;
- break;
- }
- }
- if( !occupied ) SetVehicleToRespawn(v);
- }
- SendClientMessageToAll(0xFF0000AA, "Administrator przywrócił wszystkie pojazdy na miejsce spawnu!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement