22.04.2010, 13:14
Im having a little problem creating this destroycreatedcars cmd.
I want it to Destroy all vehicles above ID 348(thats ID of new cars spawned by admins), but it dosent work at all![undecided](images/smilies/neutral.gif)
Can anyone give me a little help to solve my little problem?
if(strcmp(cmd, "/destroycreatedcars", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >=![Cool](images/smilies/cool.gif)
{
new cardid= GetPlayerVehicleID(playerid);
new spawnedcar = carid >=348;
DestroyVehicle(spawnedcar);
return 1;
}
}
I want it to Destroy all vehicles above ID 348(thats ID of new cars spawned by admins), but it dosent work at all
![undecided](images/smilies/neutral.gif)
Can anyone give me a little help to solve my little problem?
if(strcmp(cmd, "/destroycreatedcars", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >=
![Cool](images/smilies/cool.gif)
{
new cardid= GetPlayerVehicleID(playerid);
new spawnedcar = carid >=348;
DestroyVehicle(spawnedcar);
return 1;
}
}