get in player vehicle
#4

pawn Код:
CMD:gv(playerid, params[])
{
    new id;
    if(PlayerAcc[playerid][Log] == 0) return SendClientMessage(playerid, COLOR_RED, "Error: You are not logged in!");
    if(PlayerAcc[playerid][Admin] >= 3)
    {
        if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "Gv: /gv (id)");
        if(id == INVALID_PLAYER_ID) return ErrorMessages(playerid, 2);
        if(id == playerid) return ErrorMessages(playerid, 4);
        if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
        {
            if(id == INVALID_VEHICLE_ID) return SendClientMessage(playerid, COLOR_RED, "Gv: That vehicle doesn't exist");
            PutPlayerInVehicle(playerid, id, 0);
        }
        else return SendClientMessage(playerid, COLOR_GREY, "Gv: You must be on foot");
    }
    return 1;
}
Reply


Messages In This Thread
get in player vehicle - by suni - 10.05.2015, 22:53
Re: get in player vehicle - by Abagail - 10.05.2015, 22:55
Re: get in player vehicle - by suni - 11.05.2015, 00:25
Re: get in player vehicle - by Abagail - 11.05.2015, 00:32
Re: get in player vehicle - by suni - 11.05.2015, 00:45
Re: get in player vehicle - by Abagail - 11.05.2015, 01:10
Re: get in player vehicle - by suni - 11.05.2015, 01:50
Re: get in player vehicle - by Abagail - 11.05.2015, 02:02
Re: get in player vehicle - by suni - 11.05.2015, 02:38
Re: get in player vehicle - by Konstantinos - 11.05.2015, 09:17

Forum Jump:


Users browsing this thread: 1 Guest(s)