Respawn all cars
#8

Код:
if(strcmp(cmdtext, "/resetcars", true) == 0){
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
new vh=CreateVehicle(400,0.0,0.0,0.0,0.0,-1,-1,-1);
DestroyVehicle(vh);
new p[MAX_VEHICLES];
for(new v = 0; v < vh; v++){
p[v]=0;
for(new i = 0; i < GetMaxPlayers(); i++){
if(IsPlayerInVehicle(i,v)) p[v]=1;
}
if(p[v]==0) SetVehicleToRespawn(v);
}
return 1;
}
its work i ty it!... have fun =]
Reply


Messages In This Thread
Respawn all cars - by KnooL - 26.02.2009, 12:45
Re: Respawn all cars - by kobrasek - 26.02.2009, 12:52
Re: Respawn all cars - by KnooL - 26.02.2009, 13:10
Re: Respawn all cars - by kobrasek - 26.02.2009, 13:22
Re: Respawn all cars - by KnooL - 26.02.2009, 13:23
Re: Respawn all cars - by KnooL - 26.02.2009, 17:39
Re: Respawn all cars - by Coicatak - 26.02.2009, 21:48
Re: Respawn all cars - by kobrasek - 26.02.2009, 21:58
Re: Respawn all cars - by BeckzyBoi - 26.02.2009, 22:37
Re: Respawn all cars - by Coicatak - 27.02.2009, 10:51

Forum Jump:


Users browsing this thread: 3 Guest(s)