Help me to make a cmd
#1

Quote:

pFireArmsLic

FirearmsLic Varriable
Quote:

pAdmin

Admin Varriable

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

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
Reply
#3

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

PHP код:
pAdmin 
and


PHP код:
pFireArmsLic 
Reply
#4

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;
}
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)