12.07.2010, 22:48
Hey Guys!
I'm trying to make a function into my script, which writes the player's name and ID into the chat when he messages.
I have the code:
So if You know, please reply
Thanks
Nonameman
I'm trying to make a function into my script, which writes the player's name and ID into the chat when he messages.
I have the code:
pawn Код:
public OnPlayerText(playerid, text[])
{
new str[?];//And I dunno what string size should I write here =P
format(str, sizeof(str), "[%s][ID:%d]: %s", GetName(playerid), playerid, text);
return SendClientMessageToAll(colorWHITE, str);
}
Thanks
Nonameman