22.01.2011, 04:55
Quote:
for your vehicle like the remove all vehicles u should use
pawn Код:
pawn Код:
|
pawn Код:
else if (strcmp("/acleanup", cmdtext, true, 10) == 0) //Clean up everyones spawned vehicles...
{
if(IsPlayerAdmin(playerid))
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
DestroyVehicle(IsSpawnedVehicle[i] == 1);
SendClientMessage(playerid, 0xFF0000FF, "Info => Everyones vehicles cleaned up!");
IsSpawnedVehicle[playerid] = 0;
return 1;
}
}
return 0;
}
else if (strcmp("/cleanup", cmdtext, true, 10) == 0) //The player who type /cleanup, get HIS vehicles cleaned
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
DestroyVehicle(IsSpawnedVehicle[playerid] == 1);
SendClientMessage(playerid, 0xFF0000FF, "Info => You cleaned up the vehicles YOU used/uses");
IsSpawnedVehicle[playerid] = 0;
return 1;
}
return 0;
}
return 0;
}