Quote:
Originally Posted by BielCOP
pawn Код:
// Cmd
if(strcmp(cmd, "/resetarcarros", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 4000) { RespawnVeiculos(); } } return 1; }
// Fim do Gm
RespawnVeiculos() // By Biel_COP { new PlayersVeiculo[MAX_VEHICLES];
for(new a=0; a<MAX_VEHICLES; a++) { for(new b=0; b<MAX_PLAYERS; b++) { if(IsPlayerInVehicle(b,a)) { PlayersVeiculo[a]++; } } } for(new c=0; c<MAX_VEHICLES; c++) { if(PlayersVeiculo[c] == 0) { SetVehicleToRespawn(c); } } return 1; }
|
vc e a sua coisa de complicar o que e simples...