24.03.2017, 03:52
Ok i want this coding to work like this: if the player is admin or rcon admin they are able to use swear words in main chat but if they r not admins then it should return a message saying "You are not allowed to se swaer words in main chat"
PHP код:
// my coding
for(new words; words<sizeof(SwearWords); words++)
{
if(!IsPlayerAdmin(playerid) && pInfo[playerid][Admin] != 1)//isnt this line saying , if the player isn't rcon OR server admin it should return the message below?
{
if(strfind(text,SwearWords[words],true) != -1 )
{
SendClientMessage(playerid, error,"AdmCmd: You are not allowed to use those words here.");
return 0;
}
}
}