help pls - 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 pls (
/showthread.php?tid=373064)
help pls -
shaniyal - 29.08.2012
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.
Re: help pls -
ddnbb - 29.08.2012
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
Re: help pls -
Akira297 - 29.08.2012
Place the message underneath
'OnPlayerConnect'.
Re: help pls -
shaniyal - 29.08.2012
can it will be correct
Код:
if (strcmp("---", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,x,y,z);
SendClientMessageToAll(0xDEEE20FF, "-----.");
return 1;
}
Re: help pls -
ddnbb - 29.08.2012
Quote:
Originally Posted by Akira297
Place the message underneath 'OnPlayerConnect'.
|
What? Why? O.O
Re: help pls -
shaniyal - 29.08.2012
Quote:
Originally Posted by Akira297
Place the message underneath 'OnPlayerConnect'.
|
i am not giving msg when he joins the game
Re: help pls -
Akira297 - 29.08.2012
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.
Re: help pls -
shaniyal - 29.08.2012
can u make it for me, it simple and i know isn't it? but still i cant figure it out.
Re: help pls -
Akira297 - 29.08.2012
Send me all the commands o.e and I will just simply add it.
PM it
Re: help pls -
ddnbb - 29.08.2012
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;
}