- 0
BUG LA /o
-
Similar Content
-
- 4 replies
- 345 views
-
- 9 replies
- 389 views
-
- 1 reply
- 316 views
-
- 2 answers
- 491 views
-
- 3 replies
- 422 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
norton.
Este un bug enervant...toti playeri pot sa vorbeasca pe /o ...cum pot lasa decat admini?
COMANDA;
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 0 )
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " The OOC channel has been disabled by an Admin !");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
format(string, sizeof(string), "You can't speak, you have been silenced for %d seconds.",PlayerInfo[playerid][pMuteTime]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
result[0] = toupper(result[0]);
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/o)oc [ooc chat]");
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pHelper] == 0)
{
for(new i=0; i<MAX_ENTRY; i++)
{
if(!Swear[0]) continue;
Cenzura(result,Swear);
}
}
if(anty(result))
{
new advertiser[MAX_PLAYER_NAME];
GetPlayerName(playerid, advertiser, sizeof(advertiser));
format(string, sizeof(string), "GL BOT: {FFFF00}%s a primit Kick cu motivul: Reclama pe /o",advertiser);
SendClientMessageToAll(COLOR_RED,string);
Kick(playerid);
return 0;
}
format(string, sizeof(string), "{FFFFFF}(( %s: %s ))", sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
}
return 1;
}
Link to comment
Share on other sites
2 answers to this question
Recommended Posts