help needed
#1

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

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;
}
Reply
#3

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.
Reply
#4

But i dont need for all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)