how is this done ?
#1



I have see that on other servers. How is that done ?I know how to do the one with on player death.
Reply
#2

You mean those icons? Their players connecting/disconnecting i think.
Reply
#3

OnPlayerDisconnect
SendDeathMessage
Reply
#4

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
Reply
#5

https://sampwiki.blast.hk/wiki/SendDeathMessage
Reply
#6

dude, i am talking about the connect and disconnect icons...
Reply
#7

How about actually reading the wiki page?
Reply
#8

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);
Reply
#9

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);
Reply
#10

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);
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)