Join/Left server
#1

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.
Reply
#2

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.
Reply
#3

Yes, I'm sure. This trouble appeared, when I change SA-MP version on 0.2X .
Reply
#4

i have the same problem :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)