how is this done ? - 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 is this done ? (
/showthread.php?tid=164108)
how is this done ? -
Rocky Balboa - 30.07.2010
I have see that on other servers. How is that done ?I know how to do the one with on player death.
Re: how is this done ? -
Whizion - 30.07.2010
You mean those icons? Their players connecting/disconnecting i think.
Re: how is this done ? -
John_F - 30.07.2010
OnPlayerDisconnect
SendDeathMessage
Re: how is this done ? -
Rocky Balboa - 30.07.2010
Well i know that too, for example , on player death i put something to show the killerid, playerid and reason for the gun .. but i dont know what the code is to do this one for onplayerconnect /onplayerdisconnect
Re: how is this done ? -
John_F - 30.07.2010
https://sampwiki.blast.hk/wiki/SendDeathMessage
Re: how is this done ? -
Rocky Balboa - 30.07.2010
dude, i am talking about the connect and disconnect icons...
Re: how is this done ? -
John_F - 30.07.2010
How about actually reading the wiki page?
Re: how is this done ? -
Rocky Balboa - 30.07.2010
Look, i read it , what about onplayer connect, so it shows the blue icon, and for onplayerdisconnect, thats what i put ?
do i put this ?SendDeathMessage(INVALID_PLAYER_ID,playerid,ICON_ CONNECT);
Re: how is this done ? -
[TDM]Relax - 30.07.2010
Quote:
Originally Posted by Rocky Balboa
dude, i am talking about the connect and disconnect icons...
|
On the wiki are all very clearly written. But apparently you do not want to think.
Use:
in OnPlayerConnect
SendDeathMessage(INVALID_PLAYER_ID,playerid, ICON_CONNECT);
and
in OnPlayerDisconnect
SendDeathMessage(INVALID_PLAYER_ID,playerid, ICON_DISCONNECT);
Re: how is this done ? - [L3th4l] - 30.07.2010
FFS USE THE SEARCH NEXT TIME >:/
pawn Код:
public OnPlayerConnect(playerid)
{
SendDeathMessage(playerid, INVALID_PLAYER_ID, 200);
return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid)
{
SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
}