Join/Left server - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Join/Left server (
/showthread.php?tid=59617)
Join/Left server -
Freddy19 - 28.12.2008
Hello
I have on my public OnlayerConnect this:
Код:
SendDeathMessage(INVALID_PLAYER_ID, playerid,200);//join to server
and on public OnPlayerDiscoonect this:
Код:
SendDeathMessage(INVALID_PLAYER_ID, playerid,201);//left the server
And trouble is in this, that this not working. But when I use function SendDeathMessage in command, all is O.K.
Код:
if (strcmp("/lol", cmdtext, true) == 0)
{
SendDeathMessage(INVALID_PLAYER_ID, playerid,200);
return 1;
}
For help I will very grateful.
Re: Join/Left server -
Serbish - 28.12.2008
Quote:
Originally Posted by Freddy19
Hello
I have on my public OnlayerConnect this:
Код:
SendDeathMessage(INVALID_PLAYER_ID, playerid,200);//join to server
and on public OnPlayerDiscoonect this:
Код:
SendDeathMessage(INVALID_PLAYER_ID, playerid,201);//left the server
And trouble is in this, that this not working. But when I use function SendDeathMessage in command, all is O.K.
Код:
if (strcmp("/lol", cmdtext, true) == 0)
{
SendDeathMessage(INVALID_PLAYER_ID, playerid,200);
return 1;
}
For help I will very grateful.
|
Do you want a join/left message?
SendDeathMessage is for OnPlayerDeath.
Re: Join/Left server -
Freddy19 - 28.12.2008
Yes, I'm sure. This trouble appeared, when I change SA-MP version on 0.2X .
Re: Join/Left server -
(UvH)bLacKhAwK - 05.05.2009
i have the same problem :/