SA-MP Forums Archive
How to custom /adminduty name - 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)
+--- Thread: How to custom /adminduty name (/showthread.php?tid=628197)



How to custom /adminduty name - Zidaan - 07.02.2017

How to create admin duty (/ aduty) into a custom name and
and the color is so blue roleplay server ?
Please help.
I asked if there was a script


Re: How to custom /adminduty name - huansohn - 07.02.2017

Quote:

//Aduty
new Aduty[MAX_PLAYERS];

Quote:

CMD:aduty(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(Aduty[playerid] == 0)
{
new string[128];
format(string, sizeof(string), "* Admin %s da onduty: Su dung /baocao neu phat hien bug,loi!.",GetPlayerNameEx(playerid));
SendClientMessageToAllEx(COLOR_LIGHTRED, string);
SetPlayerColor(playerid,COLOR_GREEN);
SetPlayerArmour(playerid, 10000.0);
SetPlayerHealth(playerid, 10000.0);
Aduty[playerid] = 1;
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "Ban da off duty.");
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100.0);
SetPlayerColor(playerid,COLOR_WHITE);
Aduty[playerid] = 0;
}
}
return 1;
}

this man


Re: How to custom /adminduty name - huansohn - 07.02.2017

Help me , please
Quote:
https://sampforum.blast.hk/showthread.php?tid=628195



Re: How to custom /adminduty name - Dayrion - 07.02.2017

Quote:
Originally Posted by Zidaan
Посмотреть сообщение
How to create admin duty (/ aduty) into a custom name and
and the color is so blue roleplay server ?
Please help.
I asked if there was a script
« Would help if you handed out some code to aid in making this command, but you know, Scripting Help isn't really for making you a command...
But if someone was going to be kind, then they'd need some basis to go on, rather than nothing and guess everything. » - Sew_Sumi


Re: How to custom /adminduty name - kloning1 - 07.02.2017

I'll give you a logic.
First, create a variable for player
and enter into the command to set these variables
when set to re-name player to the variable
completed.

NB:nax indo juga nich gan.


Re: How to custom /adminduty name - Zidaan - 07.02.2017

Indo nih,