garfield

[CODE] Spawn All Cars

Aug 12th, 2011
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.37 KB | None | 0 0
  1. stock ResetarCarros(playerid)
  2. {
  3.     SendClientMessageToAll(0xF*4, "[INFO]: algum administrador espawnou todos os carros.");
  4.     static bool:inVeh;
  5.     for(new i; i < MAX_VEHICLES; i++ )
  6.     {
  7.         inVeh = false;
  8.         for(new j; j < GetMaxPlayers(); j++ )
  9.         {
  10.             if(IsPlayerInVehicle( j, i ))
  11.             inVeh = true;
  12.             break;
  13.         }
  14.         if(!inVeh) SetVehicleToRespawn(i);
  15.    }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment