OnPlayerText Error!
#5

I don't get this?

if(AdminLevel(playerid) < 1)
{
format(str,sizeof(str),"{00FFFF}Police Chat: [Name: %s] [ID:%d]: %s [Level: %s]", GetName(playerid), playerid, text[1], AdminLevel(playerid));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && AdminLevel(playerid) > 0)
{
SendClientMessage(i, 0x00FFFFFF, str);
}
}
}
}
return 0;
}

You check if they are NOT an admin, but then you send it like they are to all admins?
Reply


Messages In This Thread
OnPlayerText Error! - by ilay65 - 06.07.2014, 22:32
Re: OnPlayerText Error! - by ilay65 - 06.07.2014, 22:42
Re: OnPlayerText Error! - by ilay65 - 06.07.2014, 23:22
Re: OnPlayerText Error! - by ilay65 - 06.07.2014, 23:59
Re: OnPlayerText Error! - by Abagail - 07.07.2014, 00:01
Re: OnPlayerText Error! - by Threshold - 07.07.2014, 00:52
Re: OnPlayerText Error! - by ilay65 - 07.07.2014, 15:54

Forum Jump:


Users browsing this thread: 1 Guest(s)