Help quick please with command
#2

pawn Код:
CMD:mech(playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(PlayerInfo[playerid][pJob] != JOB_MECHANIC) return SendClientMessage(playerid, COLOR_GREY, "You are not a mechanic.");
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You must be in a vehicle to use your mechanic tools.");
    ShowDialog(playerid, 9);
    return 1;
}
Reply


Messages In This Thread
Help quick please with command - by Yordan_Kronos - 18.12.2012, 11:42
Re: Help quick please with command - by Yiin - 18.12.2012, 11:44
Re: Help quick please with command - by Yordan_Kronos - 18.12.2012, 11:45

Forum Jump:


Users browsing this thread: 1 Guest(s)