Quote:
Originally Posted by Roel
pawn Код:
CMD:adminduty(playerid, params[]) { if(PlayerData[ID][AdminLevel] >= 1) { if(PlayerData[ID][AdminDuty] == 0) { GetPlayerName(playerid, PlayerData[playerid][OrginalName], 24); SetPlayerName(playerid, PlayerData[playerid][AdminName]); SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now on admin duty"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /adminduty to go on admin duty"); format(str2, sizeof(str2),"Admin %s Is now online",PlayerData[playerid][AdminName]); SetPlayerColor(playerid, COLOR_NAVY); SendClientMessageToAll(COLOR_GREEN,str2); } else { SetPlayerName(playerid, PlayerData[playerid][OrginalName]); SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now off admin duty"); format(str2, sizeof(str2),"Admin %s Is now offline",PlayerData[playerid][AdminName]); SetPlayerColor(playerid, COLOR_NAVY); SendClientMessageToAll(COLOR_GREEN,str2); } } return 1; }
Put OrginalName[MAX_PLAYER_NAME] into your enum.
EDIT I will put it into the cmd.
|
Still not working
If i do /adminduty it keeps just saying "You are now on admin duty"
Please Help Me
Thank You
Please Help Me Please