19.03.2014, 08:49
When a player leaves to my server. and im on admin duty. i can see if they are (Leave/Timeout/Kick/Banned)
I have this but i dont know how to script.. if you are on admin duty you will see this message:
admin duty variable
I have this but i dont know how to script.. if you are on admin duty you will see this message:
Код:
new string[128]; switch (reason) { case 0: { format(string, sizeof(string), "%s has left the server (timeout).", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); if(PlayerCuffed[playerid] != 0) { strcpy(PlayerInfo[playerid][pPrisonedBy], "Server", 64); strcpy(PlayerInfo[playerid][pPrisonReason], "Logging while cuffed (timeout)", 64); PlayerInfo[playerid][pJailed] = 3; PlayerInfo[playerid][pJailTime] += 30*60; } } case 1: { format(string, sizeof(string), "%s has left the server (leaving).", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); if(PlayerCuffed[playerid] != 0) { strcpy(PlayerInfo[playerid][pPrisonedBy], "Server", 64); strcpy(PlayerInfo[playerid][pPrisonReason], "Logging while cuffed (leaving)", 64); PlayerInfo[playerid][pJailed] = 3; PlayerInfo[playerid][pJailTime] += 20*60; } } case 2: { format(string, sizeof(string), "%s has left the server (kicked/banned).", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } }
Код:
AdminDuty