help needed - 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: help needed (
/showthread.php?tid=394663)
help needed -
ashwinsekhari - 23.11.2012
everyone i want a thing like that
suppose these i one player named as ashwin
he say's
ashwin:hi
then he says
ashwin:i need help
at that time only a server message comes need help try /helpme
like this
ashwin:i need help
*try using /helpme instead of saying here
a like like that if someone says admin help me
it says /admins
Re: help needed -
Faisal_khan - 23.11.2012
Something like this?
pawn Код:
public OnPlayerText(playerid, text[])
{
if(strfind(text, "help", true) != -1) //returns 4 (!= -1 because -1 would be 'not found')
{
SendClientMessageToAll(0xFFFFFFFF, "Do /helpme!");
}
return 1;
}
Re: help needed -
jotan. - 23.11.2012
pawn Код:
public OnPlayerText(playerid, text[])
{
if(strfind(text, "help", true) != -1)
{
SendClientMessage(playerid,0xFFFFFFFF, "Do /helpme!");
}
return 1;
}
Use this if you want to send the message only to the player,not to the whole server.
Re: help needed -
ashwinsekhari - 23.11.2012
But i dont need for all