Hey auf meinem Server Können die spieler halt /o benutzen aber aus irgend einen grund können die nicht lesen was via /o geschrieben wird ich als 1338 Admin kann es allerdings schreiben
Code:
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_RED, "Du bist nicht eingelogt.");
return 1;
}
if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GREEN, "Der OOC ist deaktiviert.");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, COLOR_RED, "Sie sind gemutet.");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[200];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Benutze: (/o)oc [Text]");
return 1;
}
if(PlayerInfo[playerid][pAdmin]==1 || PlayerInfo[playerid][pAdmin]==2)
{
format(string, sizeof(string), "{FFFFFF}(( {00A500}%s: {FFFFFF}%s ))", sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
if(PlayerInfo[playerid][pAdmin]==3 || PlayerInfo[playerid][pAdmin]==4)
{
format(string, sizeof(string), "{FFFFFF}(( {FF8700}%s: {FFFFFF}%s ))", sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
if(PlayerInfo[playerid][pAdmin]==1337)
{
format(string, sizeof(string), "{FFFFFF}(( {FF0000}%s: {FFFFFF}%s ))", sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
if(PlayerInfo[playerid][pAdmin]==1338)
{
format(string, sizeof(string), "{FFFFFF}(( {9D0000}%s: {FFFFFF}%s ))", sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
if(PlayerInfo[playerid][pAdmin]==1339)
{
format(string, sizeof(string), "{FFFFFF}(( {0087FF}%s: {FFFFFF}%s ))", sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
if(PlayerInfo[playerid][pAdmin]==0)
{
format(string, sizeof(string), "{FFFFFF}(( %s: %s ))", sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
}
return 1;
}