Admin help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Admin help (
/showthread.php?tid=252768)
Admin help -
SpiderWalk - 02.05.2011
I want to make Admin duty like this :
/aduty_on
pawn Код:
if (strcmp("/aduty_on", cmdtext, true, 10) == 0)
{
new pName[MAX_PLAYER_NAME];
new string[300];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "{6EF83C}Administrator %s is now on duty", pName);
SendClientMessageToAll(0xEB0000FF, string);
SetPlayerColor(playerid,0xFF0037FF);
GivePlayerWeapon(playerid,38,500000000000000);
SetPlayerSkin(playerid,294);
SetPlayerColor(playerid,0x00FFC8FF);
return 1;
}
But how to make it only for admins not for RCON just for admins and RCON Admins (I using Lux Admin system)
Re: Admin help -
System64 - 02.05.2011
you must ave if(IsPlayerAdmin...
Re: Admin help -
SpiderWalk - 02.05.2011
Where to give it
Re: Admin help -
TheGarfield - 02.05.2011
pawn Код:
// in top you gm
#include <ladmin>
// Command
if(strcmp("/aduty_on", cmdtext, true, 10) == 0)
{
if(!IsPlayerAdmin(playerid))
if(!IsPlayerLuxAdm(playerid,/* level admin */ 4))
return SendClientMessage(playerid, 0xFF0000,"You are not admin");
new pName[MAX_PLAYER_NAME];
new string[300];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "{6EF83C}Administrator %s is now on duty", pName);
SendClientMessageToAll(0xEB0000FF, string);
SetPlayerColor(playerid,0xFF0037FF);
GivePlayerWeapon(playerid,38,500000000000000);
SetPlayerSkin(playerid,294);
SetPlayerColor(playerid,0x00FFC8FF);
return 1;
}
Re: Admin help -
SpiderWalk - 02.05.2011
How to fix this one
Код:
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\General!!!.pwn(189) : error 017: undefined symbol "IsPlayerLuxAdm"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: Admin help -
SpiderWalk - 02.05.2011
HELP ME!!
Re: Admin help -
SpiderWalk - 02.05.2011
PLEASE!!
Re: Admin help -
SpiderWalk - 02.05.2011
how to fix this error
Код:
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\General!!!.pwn(189) : error 017: undefined symbol "IsPlayerLuxAdm"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: Admin help -
chrism11 - 02.05.2011
hmm, go to the lux admin script and get a admin cmd and post it here and i can help u
Re: Admin help -
SpiderWalk - 02.05.2011
I fix it