SA-MP Forums Archive
How to do this???? - 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: How to do this???? (/showthread.php?tid=234747)



How to do this???? - HerronInd - 04.03.2011

when player connect/disconnect

it show all here

please see screenshot here
[/imageshack/i/player...sconnect.jpg/]


Re: How to do this???? - Unknown123 - 04.03.2011

OnPlayerDeath


Re: How to do this???? - BASITJALIL - 04.03.2011

Код:
public OnPlayerConnect(playerid)
        SendClientMessageToAll(Color, "%s Has Joined The Server");
        SendDeathMessage(playerid, 200);



Re: How to do this???? - HerronInd - 04.03.2011

omG you Guys didn't understand me o.O.

i mean when player will connect or Disconnect

not onplayerdeath


i some servers we see this msg

Herron Joined server

or

Herron Left Server.

i don't want this msg for all

i want connect icon and disconnect icon in all players window on right side

like this [/imageshack/i/player...connect.jpg/]]


Re: How to do this???? - xir - 04.03.2011

yeah it should be put under onplayerdeath


AW: How to do this???? - Nero_3D - 04.03.2011

pawn Код:
SendDeathMessage(killer, victim, reason)
under OnPlayerConnect and OnPlayerDisconnect

killer = playerid, victim = INVALID_PLAYER_ID, reason = reasons (connect / disconnect at the end of the page)