Überschrift sagt alles ..
ocmd:adutyon(playerid)
{
if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,ROT,"Du bist kein Admin.");
{
SetPlayerHealth(playerid,100000000.0);
SetPlayerArmour(playerid,100000000.0);
SetPlayerColor(playerid,GRÜN);
new string[128];
format(string,sizeof(string),"%s ist nun OnDuty und für eure Fragen bereit. (/report <text>) !",SpielerName(playerid));
SendClientMessageToAll(ORANGE,string);
return 1;
}
}
ocmd:adutyoff(playerid)
{
if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,ROT,"Du bist kein Admin.");
{
SetPlayerHealth(playerid,100.0);
SetPlayerArmour(playerid,100.0);
SetPlayerColor(playerid,WEISS);
new string[128];
format(string,sizeof(string),"%s ist nun OffDuty!",SpielerName(playerid));
SendClientMessageToAll(ORANGE,string);
return 1;
}
}
Danke.