13.07.2015, 15:22
Hello guys,
I have a problem with my script, i have created an admin chat but the message is send to all players,
In OnPlayerText callback
+ 1 rep for helping
(PS: sorry for my bad english
)
I have a problem with my script, i have created an admin chat but the message is send to all players,
In OnPlayerText callback
pawn Код:
if(AccInfo[playerid][Admin] >= 1)
{
if(text[0] == '!')
{
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), "[Admin Chat]: %s: %s", string, text[1]);
SendClientMessage(playerid, red, string);
}
}
else
{
return 0;
}
(PS: sorry for my bad english
![Smiley](images/smilies/smile.png)