29.01.2011, 19:52
simpes:
No Comando...
No Comando...
pawn Код:
if(strcmp(cmd, "/respawncars", true) == 0)
{
ResetarVeiculos();
return true;
}
pawn Код:
stock ResetarVeiculos()
{
new string[128]="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);
}
}
}