if(strcmp(cmd, \"/aduty\", true) == 0) { if(PlayerInfo[playerid][pAdmin] > 0) { new msgstring[150]; if(PlayerInfo[playerid][pAdminDuty] == 0) { format(PlayerInfo[playerid][pNormalName], 255, \"%s\", GetName(playerid)); //SetPlayerName(playerid, PlayerInfo[playerid][pAdminName]); format(msgstring, sizeof(string), \"{01A601}** Administrator %s is now on admin duty. (/askq for assistance) **\",sendername); SendClientMessageToAll(COLOR_WHITE, msgstring); SetPVarInt(playerid, \"LastSkin\", GetPlayerSkin(playerid)); SetPlayerSkin(playerid, 240); PlayerInfo[playerid][pAdminDuty] = 1; SetPlayerHealth(playerid, 9999); SetPlayerArmour(playerid, 9999); } else { format(msgstring, sizeof(string), \"{FF0000}** Administrator %s is now off admin duty. **\",sendername); SendClientMessageToAll(COLOR_WHITE, msgstring); //SetPlayerName(playerid, PlayerInfo[playerid][pNormalName]); SetPlayerSkin(playerid, GetPVarInt(playerid, \"LastSkin\")); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 0); PlayerInfo[playerid][pAdminDuty] = 0; } } return 1; }
Ezt szeretném megcsinálni.. if(strcmp(cmd, \"/aduty\", true) == 0) { if(PlayerInfo[playerid][pAdmin] > 0) { new msgstring[150]; if(PlayerInfo[playerid][pAdminDuty] == 0) { format(PlayerInfo[playerid][pNormalName], 255, \"%s\", GetName(playerid)); //SetPlayerName(playerid, PlayerInfo[playerid][pAdminName]); format(msgstring, sizeof(string), \"{01A601}** Administrator %s is now on admin duty. (/askq for assistance) **\",sendername); SendClientMessageToAll(COLOR_WHITE, msgstring); SetPVarInt(playerid, \"LastSkin\", GetPlayerSkin(playerid)); SetPlayerSkin(playerid, 240); PlayerInfo[playerid][pAdminDuty] = 1; SetPlayerHealth(playerid, 9999); SetPlayerArmour(playerid, 9999); } else { format(msgstring, sizeof(string), \"{FF0000}** Administrator %s is now off admin duty. **\",sendername); SendClientMessageToAll(COLOR_WHITE, msgstring); //SetPlayerName(playerid, PlayerInfo[playerid][pNormalName]); SetPlayerSkin(playerid, GetPVarInt(playerid, \"LastSkin\")); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 0); PlayerInfo[playerid][pAdminDuty] = 0; } } return 1; } Eyt szeretném mert ehez nemkell rcon-ba legyek de a pawno nem csinalja meg az amx filet ha meg meg is csinalja akkor se megy:S
Most ez lehet hülye kérdés lesz, de adtál magadnak admin jogot ?