23.04.2012, 20:00
I am trying to make it so when a player does /adminduty that players name changes ( I have already done that ) but want i want it to do is when you /adminduty again to go off admin duty your name changes back to the original
Thank You
Please Help Me Please
pawn Код:
CMD:adminduty(playerid, params[])
{
if(PlayerData[ID][AdminDuty] == 0)
if(PlayerData[ID][AdminLevel] >= 1)
{
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);
}
return 1;
}
Thank You
Please Help Me Please