12.09.2009, 17:18
Quote:
Originally Posted by Marclang
so how do I fix it?
|
pawn Код:
dcmd_adestroycars(playerid, params[])
{
#pragma unused params
if(pStats[playerid][pAdmin] >= 3)
{
for(new i = 0;i < Spawned; i++)
{
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.");
Spawned = 0; // Or whatever the default value is
}
else
{
SendClientMessage(playerid, COLOR_WHITE, BAD_ADMIN_MESSAGE);
}
return 1;
}