Hallo,wollte mal fragen wie ich den /AOND Befehl ab den Admin Rank 1 mache, & den /AONDOFF Befehl,
Pawn code:
ocmd:aond(playerid,params[])
{
new string[128];
if(PlayerInfo[playerid][pAdminLevel] >= 1) return SendClientMessage(playerid,COLOR_RED,"- Du bist kein Administrator");
format(string,sizeof string," * %s ist nun als Administrator im Dienst",PlayerName(playerid));
SendClientMessageToAll(COLOR_PINK, string);
SetPVarInt(playerid,"pSkin",GetPlayerSkin(playerid));
SetPlayerSkin(playerid,149);
SetPlayerHealth(playerid, 0x7F800000);
SetPlayerColor(playerid,COLOR_PINK);
return 1;
}
ocmd:aoffd(playerid,params[])
{
new string[128];
if(PlayerInfo[playerid][pAdminLevel] <= 1) return SendClientMessage(playerid,COLOR_RED,"- Du bist kein Administrator");
format(string,sizeof string," * %s ist nun nicht mehr als Administrator im Dienst",PlayerName(playerid));
SendClientMessageToAll(COLOR_PINK, string);
//SetPVarInt(playerid,"pSkin",GetPlayerSkin(playerid));
SetPlayerSkin(playerid,GetPVarInt(playerid,"pSkin"));
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,COLOR_WHITE);
return 1;
}
Mfg Florian