Admin Name system
#1

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

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); 
Reply
#3

Код:
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
Reply
#4

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

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)