Trunk system help.... (help atleast with /giverespect command) and trunk system.
#3

you should be more specific, but take this command I have, play arround with it
pawn Код:
if(strcmp("/givepermisson", cmd, true) == 0)
    {
        if(PlayerInfo[playerid][pAdminLevel] == 3)
        {
            tmp = strtok(cmdtext,idx);
            if(!strlen(tmp))
            {
                return SendClientMessage(playerid,COLOR_LIGHTRED,"USAGE: /givepermisson [id]");
            }
            new id = strval(tmp);
            new pid = playerid;
            if(!IsPlayerConnected(id))
            {
                return SendClientMessage(playerid,COLOR_GRAY,"AdmCmd: This player is not online!");
            }
            if (PlayerInfo[id][pPermissons] < 200)
            {
                new amsg[100];
                new victimid[MAX_PLAYERS];
                GetPlayerName(id, victimid, sizeof(victimid));
                format(amsg,sizeof(amsg),"AdmCmd: You have given %s one permisson!",victimid);
                SendClientMessage(pid,COLOR_LIGHTBLUE,amsg);
                PlayerInfo[id][pPermissons]++;
                PlayHintSoundAtPos(playerid);
                return 1;
            }
            else SendClientMessage(pid,COLOR_GRAY,"AdmCmd: This player already haves too many permissons (over 200)!");
        }
        else
        {
            SendClientMessage(playerid,COLOR_GRAY,"You don't have authorization.");
            return 1;
        }
    }
but I can't help you with trunk system > too complex.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)