04.12.2014, 13:13
To em busca de um simples comando em ZCMD que deleta todos os veнculos criados.
Tenho /RTC que da respawn nos veнculos que jб estгo no servidor mais queria tambйm o /DTC
/RTC \/
No fim do GM:
Neste mesmo estilo, se possнvel. Agradeзo desde jб.
Tenho /RTC que da respawn nos veнculos que jб estгo no servidor mais queria tambйm o /DTC
/RTC \/
PHP код:
CMD:rtc(playerid, params[])
{
if(pAdmin[playerid][Level] < 5) return SendClientMessage(playerid, COR_ERRO, "Vocк nгo tem permissгo para este comando.");
ResetarCarros(playerid);
return 1;
}
PHP код:
stock ResetarCarros(playerid)
{
new string[128];
GetPlayerName(playerid, string, MAX_PLAYER_NAME);
format(string, sizeof(string), "AdmCMD: O Adminstrador %s respawnou todos os veiculos!", string);
SendClientMessageToAll(0xFFFFFFFF, string);
new bool: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;
}
}
if(!inVeh) SetVehicleToRespawn(i);
}
return true;
}