03.09.2011, 11:21
Works good, but is one problem. Now command looks that:
When I'm not logged in on RCON - works good - show in chat info about this command not work, but when I'm logged in, this destroy all cars properly, but hm... still show in chat info about not working command and under this information show "All cars spawned by /v are removed"... What I doing bad?
pawn Код:
CMD:respawn(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return 0; // returns 0 - command not work
else SendClientMessage(playerid, Kolor_Administratora, "All cars spawned by /v are removed.");
for(new i = 1; i < MAX_VEHICLES + 1; i++)
{
if(Commanded[i])
{
DestroyVehicle(i);
Commanded[i] = false;
continue;
}
}
return true;
}