06.07.2012, 18:02
Hello, i have a command to delete vehicles but for some reason i have failed
pawn Код:
CMD:dveh(playerid, params[])
{
new playerState = GetPlayerState(playerid);
if(PlayerInfo[playerid][Padmin] >=2)
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
DestroyVehicle(currentveh);
}
else if(PlayerInfo[playerid][Padmin] <=1)
{
SendClientMessage(playerid, -1, "Your not high enough level to do that");
}
else if (playerState == PLAYER_STATE_ONFOOT)// all of this
{
if(PlayerInfo[playerid][Padmin] >=2)// doesnt show this
SendClientMessage(playerid, -1, "You need to be in a car to use this command");// or this
}
return 1;
}