#1

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;
}
Reply


Messages In This Thread
CMD - by thefatshizms - 06.07.2012, 18:02
Re: CMD - by .FuneraL. - 06.07.2012, 18:05
Re: CMD - by thefatshizms - 06.07.2012, 18:10
Re: CMD - by Steven82 - 06.07.2012, 18:36
Re: CMD - by thefatshizms - 06.07.2012, 18:43

Forum Jump:


Users browsing this thread: 1 Guest(s)