18.12.2012, 11:42
Hello i have one comand CMD:mech , this command is used from Mechanics (Job) and Vip Players.
How can i make do to use only from Mechanic. This is Command :
How can i make do to use only from Mechanic. This is Command :
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 && !PlayerInfo[playerid][pVIP]) 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;
}