help pls
#1

look i was creating a teleport command when player join it all player get the msg like '' ____ player is joining /tdm''
how can i make this to give all the msg
i was think it, i think it could be '' sendclientmessagetoall'' but pls tell me the whole line.
Reply
#2

https://sampwiki.blast.hk/wiki/Function:...ntMessageToAll

pawn Код:
SendClientMessageToAll(COLOR_RED, "Bob joined the game");
SAMP Wiki is great place, you should check it out. :P
Reply
#3

Place the message underneath 'OnPlayerConnect'.
Reply
#4

can it will be correct
Код:
if (strcmp("---", cmdtext, true, 10) == 0)
        {
 SetPlayerPos(playerid,x,y,z);
  SendClientMessageToAll(0xDEEE20FF, "-----.");
            return 1;
        }
Reply
#5

Quote:
Originally Posted by Akira297
Посмотреть сообщение
Place the message underneath 'OnPlayerConnect'.
What? Why? O.O
Reply
#6

Quote:
Originally Posted by Akira297
Посмотреть сообщение
Place the message underneath 'OnPlayerConnect'.
i am not giving msg when he joins the game
Reply
#7

Quote:
Originally Posted by shaniyal
Посмотреть сообщение
i am not giving msg when he joins the game
Then? You requested it for when they joined.

Oh! Sorry, I'm tired.

Make it, OnPlayerCommand somethin like that.

and when they type it. Make it send a global message.
Reply
#8

can u make it for me, it simple and i know isn't it? but still i cant figure it out.
Reply
#9

Send me all the commands o.e and I will just simply add it.

PM it
Reply
#10

pawn Код:
CMD:teleport(playerid, params[])
{
    new pname[MAX_PLAYER_NAME], string[64];
    GetPlayerName(playerid, pname, sizeof(string));
    SetPlayerPos(playerid, 0.0, 0.0, 0.0);
    format(string, sizeof(string), "%s joins Team Deathmatch, type /join to join.", pname);
    SendClientMessageToAll(COLOR_RED, string);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)