check guns help! +rep -
PawnoQ - 08.04.2012
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;
}
Re: check guns help! +rep -
Aira - 08.04.2012
Hmm, i'm not sure but next time before you post "Will it work" be sure to Test it first
Re: check guns help! +rep -
Ezay - 08.04.2012
@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/
Re: check guns help! +rep -
$$inSane - 08.04.2012
you should download ladmin 4v2.. it has many intresting commands.
Re: check guns help! +rep -
Reklez - 08.04.2012
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.
Re: check guns help! +rep -
DBan - 08.04.2012
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.
Re: check guns help! +rep -
Reklez - 08.04.2012
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