13.08.2014, 21:22
Quote:
pFireArmsLic |
Quote:
pAdmin |
[Anyone help me to create a administrator cmd /giveweaponlicense.]
I Will REP+
pFireArmsLic |
pAdmin |
pAdmin
pFireArmsLic
CMD:giveweaponlicense(playerid, params[])
{
new id;
if (pInfo[playerid][pAdmin] < 1) // Change 1 to 2 if you wants level 2+ can use this (etc..)
return SendClientMessage(playerid, -1, "You are not an admin.");
if (sscanf(params, "u", id))
return SendClientMessage(playerid, -1, "Usage: /giveweaponlicense [id/name]");
if (pInfo[id][pFireArmsLic] == 1) // Checking if the player already has one
return SendClientMessage(playerid, -1, "Player already has a weapon license.");
pInfo[id][pFireArmsLic] = 1;
// Client messages and whatever
return 1;
}