onplayertext - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: onplayertext (
/showthread.php?tid=282674)
onplayertext -
RBTDM - 12.09.2011
hello.
If a player type "hacker" then he should get a message
"SendClientMessage(playerid,red,"Type /report <id> reason>" like this.Can anybody help me plz
Re: onplayertext -
Allan Kardec - 12.09.2011
@Edit
you're fast
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == 'hacker') return SendClientMessage(playerid, -1, "Use: /report <id> <reason>"), false;
return 0;
}
Re: onplayertext -
RBTDM - 12.09.2011
Ok ty
Re: onplayertext -
Allan Kardec - 12.09.2011
Quote:
Originally Posted by [M]onsieur
jaja
Код:
if(text[0] == "hacker")
Wrong code, lol.
|
thank's
Quote:
Originally Posted by RBTDM
Ok ty
|
good luck