SA-MP Forums Archive
What's wrong? - 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: What's wrong? (/showthread.php?tid=425216)



What's wrong? - LeeXian99 - 25.03.2013

What's wrong with this? It's on OnPlayerConnect...

pawn Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
SendDeathMessage(name, ,200);



Re: What's wrong? - rangerxxll - 25.03.2013

Try adding it under OnPlayerDeath.

pawn Код:
SendDeathMessage(killerid, playerid, reason);
It gets the name automatically.


Re: What's wrong? - LeeXian99 - 25.03.2013

Uh, I mean, OnPlayerConnect, it's not a death reason, it's just telling that a player connected/disconnected.


Re: What's wrong? - SchurmanCQC - 25.03.2013

pawn Код:
SendDeathMessage(INVALID_PLAYER_ID, playerid, ICON_CONNECT);



Re: What's wrong? - LeeXian99 - 25.03.2013

Quote:
Originally Posted by Schurman
Посмотреть сообщение
pawn Код:
SendDeathMessage(INVALID_PLAYER_ID, playerid, ICON_CONNECT);
Thanks, +rep.