Here
pawn Код:
if(Player[playerid][AdminDuty] == 1)
{
if(strlen(Player[playerid][AdminName]) >= 1 || strcmp(Player[playerid][AdminName], "Nothing", true) == 0) {
SendClientMessage(playerid, WHITE, "You are now on admin duty. You will appear on the /admins list and you'll be able to view reports.");
Player[playerid][AdminDuty] = 1;
if(Player[playerid][AdminLevel] >= 3) {
SetPlayerHealth(playerid, 500000);
SetPlayerColor(playerid,0x0259EAFF);
}
format(Player[playerid][NormalName], 255, "%s", GetName(playerid));
SetPlayerName(playerid, Player[playerid][AdminName]);
SetPlayerSkin(playerid, Player[playerid][AdminSkin]);
if(Player[playerid][HospitalTime] >= 1) {
Player[playerid][HospitalTime] = 0;
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid, SpawnX, SpawnY, SpawnZ);
SetPlayerDrunkLevel(playerid, 0);
SendClientMessage(playerid, WHITE, "You have been de-hospitalized.");
}
format(string, sizeof(string), "%s (%s) is now on Admin Duty (just authenticated, but logged on duty).", Player[playerid][AdminName], Player[playerid][NormalName]);
SendToAdmins(ADMINORANGE, string, 0);
}
else {
SendClientMessage(playerid, WHITE, "You haven't set an administrators' name yet.");
}
There are a lot of code and I didn't had time a lot. But I changed this part