check guns help! +rep
#1

hi,

i want to make a cmd for admins to check players gun data.
Would this work?

pawn Код:
dcmd_checkp(playerid,params[])
{
    if(Spieler[playerid][AdminLevel] > 0)
    {
        new pID, weaposL[192];
        if(sscanf(params, "u",pID))return SendClientMessage(playerid,0xFF0000FF,"Usage: /checkp [ID]");
        new weapons[13][2];
        for (new i = 0; i < 13; i++)
        {
            GetPlayerWeaponData(pID, i, weapons[i][0], weapons[i][1]);
            format(weaposL, sizeof weaposL, "%s WeaponID: %d | Ammo: %d\r\n", weaposL, weapons[i][0], weapons[i][1]);
        }
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX,"{EE0000}Weapons", weaposL, "Ok", "Ok");
    }else return SendClientMessage(playerid, 0xFF0000FF, "You are not admin!");
    return 1;
}
Reply
#2

Hmm, i'm not sure but next time before you post "Will it work" be sure to Test it first
Reply
#3

@Aira

No Wonder, - Since LSS:RP is Another GF Edit (LOLing)

@PawnoQ

Making sure there your Player Variables,
I'd Think it'd Work (Only for DCMD Though)
But Other than That, It Looks Decent, Wont Know Untill you Try Though,
Even Though i'd Convert it to ZCMD

But Looks Good Enough

Cheers
Ezay
\o/
Reply
#4

you should download ladmin 4v2.. it has many intresting commands.
Reply
#5

Quote:
Originally Posted by $$inSane
Посмотреть сообщение
you should download ladmin 4v2.. it has many intresting commands.
Roleplay is very different than other gamemode styles. Roleplay uses its own admin system. it doesn't uses any admin filterscript like ladmin luxadmin or others. Try to download a GM test the admin system do you think it is luxadmin or ladmin? No.
Reply
#6

Quote:
Originally Posted by Reklez
Посмотреть сообщение
Roleplay is very different than other gamemode styles. Roleplay uses its own admin system. it doesn't uses any admin filterscript like ladmin luxadmin or others. Try to download a GM test the admin system do you think it is luxadmin or ladmin? No.
WTF? What's that supposed to mean? Many Gamemodes have their own admin system, not just roleplay, get out from under that 'roleplay' rock of yours.
Reply
#7

Quote:
Originally Posted by DBan
Посмотреть сообщение
WTF? What's that supposed to mean? Many Gamemodes have their own admin system, not just roleplay, get out from under that 'roleplay' rock of yours.
Well not all people are always correct, yes there is other gamemode styles that uses their own admin system, it just a typo, i'm not a good person to look for. but i told the kid who tells that to download ladmin. i know what he meant. he meant something like copy/pasting code and put it to the RP Script, copy/pasting is not good and will not make your scripting skills good. sorry if my english speaking is bad like i say no person is a perfect one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)