12.09.2009, 16:44
Hi,
Please help me with this, don't post anything flaming or insulting me as you'll just be ignored.
Genuine replies only, please.
Your help would be appreciated.
Please help me with this, don't post anything flaming or insulting me as you'll just be ignored.
Genuine replies only, please.
Your help would be appreciated.
pawn Код:
dcmd_adestroycars(playerid, params[])
{
#pragma unused params
if(pStats[playerid][pAdmin] >= 3)
{
for(new i = 0;i < Spawned; i++)
{
Spawned--;
DestroyVehicle(AdminSpawned[i]);
printf("[DEBUG] Car %d despawned. Spawned rate is at %d.", AdminSpawned[i], Spawned);
}
SendClientMessage(playerid, COLOR_WHITE, "Destroyed all admin-spawned vehicles.");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, BAD_ADMIN_MESSAGE);
}
return 1;
}
new AdminSpawned[100];
new Spawned = 1