SA-MP Forums Archive
Admin Name system - 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: Admin Name system (/showthread.php?tid=628793)



Admin Name system - Zidaan - 15.02.2017

i need Admin Name system for server Roleplay.
ex: Admin Jajang has on duty as admin.
Admin Jajang_Bowood has off duty as admin.


Re: Admin Name system - MiiSha - 15.02.2017

Go to your /aduty command or whatever and add this :

PHP код:
        new string[128];
        
format(stringsizeof(string), "%s is now ON admin duty !"GetPlayerName(playerid));
        
SendClientMessageToAll(YOUR_COLORstring); 



Re: Admin Name system - Runn3R - 15.02.2017

Код:
new string[49]; 
format(string, sizeof(string), "%s is now %s admin duty !", GetPlayerName(playerid), (PlayerInfo[playerid][aDuty]) ? ("ON") : ("OFF")); 
SendClientMessageToAll(YOUR_COLOR, string);
You can learn more about ternary operators here: https://sampforum.blast.hk/showthread.php?tid=216730


Re: Admin Name system - Zidaan - 15.02.2017

I need a script for changing name the admin name when on duty and off duty back to roleplay name


Re: Admin Name system - Zidaan - 15.02.2017