Client Message
#1

I wanted to ask you all that id any one know I made a command but when I type it it shows text to me only I want that every one near to the person can see that if any one can help me.
Here is one of the commands
pawn Код:
if (strcmp("/vjump 4", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0x8973a1, "((Vampire Jump 4))");
        return 1;
    }
Reply
#2

Well you can do SendClientMessageToAll so everyone sees it, or a foreach loop that cycles thru all players and uses GetPlayerDistanceFromPoint to see if that player is within a certain range to the player using the command. If they are use
Код:
SendClientMessage(i, 0x8973a1, "((Vampire Jump 4))");
within that loop
Reply
#3

Quote:
Originally Posted by kaisersouse
Посмотреть сообщение
Well you can do SendClientMessageToAll so everyone sees it, or a foreach loop that cycles thru all players and uses GetPlayerDistanceFromPoint to see if that player is within a certain range to the player using the command. If they are use
Код:
SendClientMessage(i, 0x8973a1, "((Vampire Jump 4))");
within that loop
It is as a global I want it for roleplay so I want only a few people can see it.
Reply
#4

Click here for tutorial on Implenting rp chat.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)