07.08.2011, 01:03
I need a command to destroy the cars of the variables CarVIP[playerid] and caradm[playerid]. I tried and failed.
Look this:
Fail
Look this:
pawn Код:
if(strcmp(cmd, "/respawncars", true) == 0 || strcmp(cmd, "/rc", true) == 0)
{
ResetCars();
return 1;
}
pawn Код:
stock ResetCars(playerid)
{
for( new i = 0; i < MAX_VEHICLES; i++ )
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInVehicle(playerid, CarVIP[playerid] && caradm[playerid])) {
DestroyVehicle(vehicleid);
}
}
}
![confused](images/smilies/confused.gif)