13.10.2011, 20:38
pawn Код:
new VehVehicle; //At the top of your script
VehVehile = CreateVehicle(bla,bla,...); //Where you create the vehicle
if(strcmp(cmd, "/destroycar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 5)
{
if(GetPlayerVehicleID(playerid) == VehVehicle)
{
DestroyVehicle(GetPlayerVehicleID(playerid));
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You are not Admin!");
}
}
}