onplayertext
#1

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
Reply
#2

@Edit
you're fast

pawn Код:
public OnPlayerText(playerid, text[])
{
     if(text[0] == 'hacker') return  SendClientMessage(playerid, -1, "Use: /report <id> <reason>"), false;
     return 0;
}
Reply
#3

Ok ty
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)