23.11.2013, 17:11
FINAL DO GM:
Comando:
Em Horario:
pawn Код:
stock ResetarCarros(playerid)
{
new string[128],
nome[MAX_PLAYERS];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[INFO]: O Adminstrador %s Respawnou todos os veiculos", name);
SendClientMessageToAll(0xFFFFFFFF, string);
new inVeh;
for( new i = 0; i < MAX_VEHICLES; i++ )
{
inVeh = false;
for( new j = 0; j < SLOTS; j++ )
{
if(IsPlayerInVehicle( j, i ))
{
inVeh = true;
break;
}
}
if(inVeh == false)
{
SetVehicleToRespawn(i);
}
}
}
pawn Код:
CMD:rc(playerid, params[])
{
ResetarCarros(playerid);
}
pawn Код:
//Topo Do GM:
new Hora, Minuto;
//OnPlayerUptade, Eu Acho que poem ai.
Gettime(Hora, Minuto);
if(Hora == 19 && Minuto == 30) {
ResetarCarros(playerid);
}