[Ajuda] Mensagem
#1

galera, eu vi em um server que a pessoa escrevia HACKER e aparecia uma mensagem tipo: viu um hacker? use /report id reason

alguem sabe como faзo para por isso
Reply
#2

https://sampwiki.blast.hk/wiki/Random_Messages
Reply
#3

Quote:
Originally Posted by Luiiiz
Посмотреть сообщение
n й random messages, a pessoa escreve tipo: HACKER e ja aparece a mensagem: use /report id motivo
Reply
#4

Use a funзгo strfind na callback OnPlayerText pra achar a palavra hacker e aн da um SendClientMessage
https://sampwiki.blast.hk/wiki/Strfind
Reply
#5

Quote:
Originally Posted by renatog
Посмотреть сообщение
Use a funзгo strfind na callback OnPlayerText pra achar a palavra hacker e aн da um SendClientMessage
https://sampwiki.blast.hk/wiki/Strfind
vlw
Reply
#6

Quote:
Originally Posted by renatog
Посмотреть сообщение
Use a funзгo strfind na callback OnPlayerText pra achar a palavra hacker e aн da um SendClientMessage
https://sampwiki.blast.hk/wiki/Strfind
eu mudei a palavra

Код:
if(strfind("Hacker", "hack", true) != -1) //returns 4, because the start of 'you' (y) is at index 4 in the string
{
    SendClientMessageToAll(0xFFFF0000, "VIU UM HACKER?  USE /REPORT ID E O MOTIVO.");
}
mas quando eu falo algo no xat, fica enviando essa mensagem ai
Reply
#7

kkkkk tenta isso

Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "hack", true) != -1 || strfind(text, "hack lixo", true) != -1)
    {
           SendClientMessage(playerid, -1, "viu um hacker? use /report id reason");
    }
    return 1;
}
Reply
#8

Quote:
Originally Posted by DarkBr
Посмотреть сообщение
kkkkk tenta isso

Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "hack", true) != -1 || strfind(text, "hack lixo", true) != -1)
    {
           SendClientMessage(playerid, -1, "viu um hacker? use /report id reason");
    }
    return 1;
}
---> http://i.imgur.com/MoZqUdW.png
Reply
#9

Quote:
Originally Posted by iName
Посмотреть сообщение
Desculpa o erro era o return 1; que й = Existe/FingeExistir deixar passar a mensagem
O Certo й return 0; = nгo existe bloquear!

ai :



copia esse code aqui, porquк tem outras coisas atualizadas!

Код:
if(strfind(text, "hack", true) != 1 || strfind(text, "hack lixo", true) != 1)//
{
	SendClientMessage(playerid, -1, "viu um hacker? use /report id reason");
	return 0;//aqui agora ta certo!
}
Reply
#10

Quote:
Originally Posted by DarkBr
Посмотреть сообщение
Desculpa o erro era o return 1; que й = Existe/FingeExistir deixar passar a mensagem
O Certo й return 0; = nгo existe bloquear!

ai :http://imgur.com/a/xWFp4

copia esse code aqui, porquк tem outras coisas atualizadas!

Код:
if(strfind(text, "hack", true) != 1 || strfind(text, "hack lixo", true) != 1)//
{
	SendClientMessage(playerid, -1, "viu um hacker? use /report id reason");
	return 0;//aqui agora ta certo!
}
mesmo error, mas pode deixar, vlw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)