Wenn ich schreiben will, wenn die Maske auf ist,
dann passiert nichts.
ocmd:o(playerid,params[])
{
new sendername[MAX_PLAYER_NAME];
new result[256];
new string[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(sscanf(params,"s",result))return SendClientMessage(playerid,FARBE_GRAU,"INFO: /o[Text]");
{
if(GetPVarInt(playerid,"maske")==0)
{
if(GetPVarInt(playerid,"Adminlevel") == 9) { format(string,sizeof(string),"{00CDFF}[OOC]ServerOwner %s: %s",sendername,result); }
else if(GetPVarInt(playerid,"Adminlevel") == 8) { format(string,sizeof(string),"{00CDFF}[OOC]Techniker %s: %s",sendername,result); }
else if(GetPVarInt(playerid,"Adminlevel") == 7) { format(string,sizeof(string),"{00CDFF}[OOC]ServerManager %s: %s",sendername,result); }
else if(GetPVarInt(playerid,"Adminlevel") == 6) { format(string,sizeof(string),"{00CDFF}[OOC]CommunityManager %s: %s",sendername,result); }
else if(GetPVarInt(playerid,"Adminlevel") == 5) { format(string,sizeof(string),"{00CDFF}[OOC]SuperAdmin %s: %s",sendername,result); }
else if(GetPVarInt(playerid,"Adminlevel") == 4) { format(string,sizeof(string),"{00CDFF}[OOC]Administrator %s: %s",sendername,result); }
else if(GetPVarInt(playerid,"Adminlevel") == 3) { format(string,sizeof(string),"{00CDFF}[OOC]Moderator %s: %s",sendername,result); }
else if(GetPVarInt(playerid,"Adminlevel") == 2) { format(string,sizeof(string),"{00CDFF}[OOC]Supporter %s: %s",sendername,result); }
else if(GetPVarInt(playerid,"Adminlevel") == 1) { format(string,sizeof(string),"{00CDFF}[OOC]Probesupporter %s: %s",sendername,result); }
else if(GetPVarInt(playerid,"Adminlevel") == 0) { format(string,sizeof(string),"{00CDFF}[OOC]User %s: %s",sendername,result); }
SendClientMessageToAll(FARBE_WEISS,string);
}
else if(GetPVarInt(playerid,"maske")==1)
{
if(GetPVarInt(playerid,"Adminlevel") == 9) { format(string,sizeof(string),"{00CDFF}[OOC] %s: %s",SpielerInfo[playerid][deckname],result); }
else if(GetPVarInt(playerid,"Adminlevel") == 8) { format(string,sizeof(string),"{00CDFF}[OOC] %s: %s",SpielerInfo[playerid][deckname],result); }
else if(GetPVarInt(playerid,"Adminlevel") == 7) { format(string,sizeof(string),"{00CDFF}[OOC] %s: %s",SpielerInfo[playerid][deckname],result); }
else if(GetPVarInt(playerid,"Adminlevel") == 6) { format(string,sizeof(string),"{00CDFF}[OOC] %s: %s",SpielerInfo[playerid][deckname],result); }
else if(GetPVarInt(playerid,"Adminlevel") == 5) { format(string,sizeof(string),"{00CDFF}[OOC] %s: %s",SpielerInfo[playerid][deckname],result); }
else if(GetPVarInt(playerid,"Adminlevel") == 4) { format(string,sizeof(string),"{00CDFF}[OOC] %s: %s",SpielerInfo[playerid][deckname],result); }
else if(GetPVarInt(playerid,"Adminlevel") == 3) { format(string,sizeof(string),"{00CDFF}[OOC] %s: %s",SpielerInfo[playerid][deckname],result); }
else if(GetPVarInt(playerid,"Adminlevel") == 2) { format(string,sizeof(string),"{00CDFF}[OOC] %s: %s",SpielerInfo[playerid][deckname],result); }
else if(GetPVarInt(playerid,"Adminlevel") == 1) { format(string,sizeof(string),"{00CDFF}[OOC] %s: %s",SpielerInfo[playerid][deckname],result); }
else if(GetPVarInt(playerid,"Adminlevel") == 0) { format(string,sizeof(string),"{00CDFF}[OOC] %s: %s",SpielerInfo[playerid][deckname],result); }
}
}
return 1;
}