06.07.2010, 20:46
pawn Код:
if(strcmp(cmdtext, "/RespawnVehicle", true) )
{
VehicleReset();
return 1;
}
forward VehicleReset();
public VehicleReset()
{
new string[128];
format(string, sizeof(string), "Os Veнculos forгo Respawnados Automaticamente");
SendClientMessageToAll(Aviso, string);
new inVeh;
for( new i = 0; i < MAX_VEHICLES; i++ )
{
inVeh = false;
for( new j = 0; j < MAX_PLAYERS; j++ )
{
if(IsPlayerInVehicle( j, i ))
{
inVeh = true;
break;
}
}
if(!inVeh)
{
SetVehicleToRespawn(i);
}
}
}