Message on connect and position.. - 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: Message on connect and position.. (
/showthread.php?tid=487483)
Message on connect and position.. -
DaZZleViirus - 13.01.2014
Hello!
what's wrong in the code?
![confused](images/smilies/confused.gif)
since it sends the message before Connected To:
Bug:
Code:
Код:
public OnPlayerConnect(playerid)
{
ClearChat(playerid); //clear the chat first
SendClientMessage(playerid, -1, "Welcome to latvia stunt server!"); //then send the message
return 1;
}
stock ClearChat(playerid)
{
for(new i = 0; i < 50; i++) SendClientMessage(playerid, -1," ");
return 1;
}
And how can i have same position on login as i have on class selection?
Re: Message on connect and position.. -
MatriXgaMer - 13.01.2014
Set it on Player Spawn
Re: Message on connect and position.. -
DaZZleViirus - 13.01.2014
Quote:
Originally Posted by MatriXgaMer
Set it on Player Spawn ![Smiley](images/smilies/smile.png)
|
I dont want to remove the messages and send welcome message when player spawn... I want to remove it and send the message when player connecting..