12.06.2012, 19:36
Hei , i am new there , before present myself , i want a little help ( i am newbie in scripting ) .
I made these days one command that return to player his licenses status. I want to know how i can make an command like /showlicenses [id of player] for eg , that show to a cop if i have valid licenses.
I made these days one command that return to player his licenses status. I want to know how i can make an command like /showlicenses [id of player] for eg , that show to a cop if i have valid licenses.
Код:
CMD:identification(playerid, params[]) { if(playerVariables[playerid][pCarLic] == 0) { SendClientMessage(playerid,COLOR_WHITE, "|__________________ACTS INFO__________________|"); SendClientMessage(playerid,COLOR_GREY, "Driver License: No"); } else { SendClientMessage(playerid,COLOR_WHITE, "|__________________ACTS INFO__________________|"); SendClientMessage(playerid,COLOR_GREY, "Driver License: Yes"); } if(playerVariables[playerid][pPassport] == 0) { SendClientMessage(playerid,COLOR_GREY, "Passport: No"); } else { SendClientMessage(playerid,COLOR_GREY, "Passport: Yes"); } return 1; }