Adminduty - 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: Adminduty (
/showthread.php?tid=223840)
Adminduty -
IvanCroatiaCopy - 10.02.2011
Hey i need help..
When you are rcon admin, you have to type /adminduty and you got name on your head DONT TOUCH ME. I'M ON ADMIN DUTY.
But when you are rcon admin, script from 0
Re: Adminduty -
Mean - 10.02.2011
Download an admin FS, I am lazy to type here it all.
My MeanAdmin has an /adminduty command
Re: Adminduty -
Franjdea - 10.02.2011
pawn Код:
if (strcmp("/adminduty", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid)) {
SetPlayerChatBubble(playerid, "I'm on Admin Duty!", 0x33AA33AA, 30.0, 10000);
}
return 1;
}
Checks if the player is an Admin (logged in to rcon), if so, it set's a chat bubble above their head displaying they are an Admin. Change the "I'm on Admin Duty!" to what you wish. The bubble will be green, you can change that too
Re: Adminduty -
HyperZ - 10.02.2011
Or that:
On top of your script:
pawn Код:
new Text3D:Admin[ MAX_PLAYERS ], AdminDuty[ MAX_PLAYERS ];
OnPlayerCommandText:
pawn Код:
if (strcmp("/adminduty", cmdtext, true, 10) == 0)
{
if( IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, -1,"You aren't an rcon admin :D");
if( AdminDuty[ playerid ] == 0 )
{
AdminDuty[ playerid ] = 1;
Admin[ playerid ] = Create3DTextLabel("DONT TOUCH ME. I'M ON ADMIN DUTY.",-1,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer( Admin[ playerid ], playerid, 0.0, 0.0, 0.7);
}
else
{
AdminDuty[ playerid ] = 0;
Delete3DTextLabel( Admin[ playerid ] );
}
return 1;
}
Re: Adminduty -
IvanCroatiaCopy - 10.02.2011
Clive thanks.. lock