ocmd:g(playerid, params[])
{
new str[256], text[200];
if(sscanf(params, "s[200]", text)) return SendClientMessage(playerid, - 1, "use b1-g /g [text]");
format(str, sizeof(str), "[Gay-Chat] %s: %s ))", PlayerName(playerid), text);
SendClientMessageToAll(-1, str);
return 1;
}
To use PlayerName as a function, do a stock on your own and stop asking for shitty simple chat functions that you actually learn when you start PAWN.
I really don't waste my time on this. What are the error / warnings?Doesn't work
new bool:gchat;
this isnt code, just logic example:
cmd : togchat
if gchat false (0)
then gchat = true (1)
else if gchat true (1)
then gchat = false (0)
cmd: gchat (text)
if gchat false (0) then SendClientMessage(playerid, -1, "G-Chat is not turned on"); return
// then just execute the cmd
Could you share the script please.. i really need to try itAnway Thanks!
Then try it and don't paste. And if you got problems just write here and I can help.Could you share the script please.. i really need to try it