SA-MP Forums Archive
Help me to make a cmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me to make a cmd (/showthread.php?tid=531654)



Help me to make a cmd - Simoer - 13.08.2014

Quote:

pFireArmsLic

FirearmsLic Varriable
Quote:

pAdmin

Admin Varriable

[Anyone help me to create a administrator cmd /giveweaponlicense.]
I Will REP+


Re: Help me to make a cmd - Stinged - 14.08.2014

Maybe if you stop bumping this topic every 20 minutes someone would help you.
Follow the forum rules.
http://forum.sa-mp.com/announcement.php?f=12


Re: Help me to make a cmd - GGW - 14.08.2014

you must have a login/register system and to safe player informations to make

PHP код:
pAdmin 
and


PHP код:
pFireArmsLic 



Re: Help me to make a cmd - Stinged - 14.08.2014

I'm just wondering how you're scripting a gamemode which has a register system, and you don't know how to make these simple commands.

pawn Код:
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;
}



Re: Help me to make a cmd - Simoer - 14.08.2014

Mister thanks for the cmd but im bumping because no one reply'ed. 2 Days,