onplayerconnects Need i tiny help!
#1

Wen a player connects to the server how can i make it show that they connected with out any words or letters on the chat. only with a little picture were it show wen i player dies.
Reply
#2

Its some SendDeathMessage function, search it around the forum, someone revealed it
Reply
#3

https://sampwiki.blast.hk/wiki/SendDeathMessage

(SendDeathMessage of when player connect is 200 and disconnect 201)
Reply
#4

dont understand nothing.
Reply
#5

You were already given the answer, look at the Wiki it actually tells you exactly what to do.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    return 1;
}
If you only want it to display whenever a player connects/disconnects and not other deaths do this:
pawn Код:
public OnPlayerConnect(playerid)
{
    SendDeathMessage(playerid, playerid, 200);
    return 1;
}
Reply
#6

delete
Reply
#7

Thanks!
Reply
#8

no,no,no what i want is that when i player connects it show how connected to the server in a little pic like when a player dies. i want both!
Reply
#9

pawn Код:
public OnPlayerConnect(playerid)
{
    SendDeathMessage(playerid, playerid, 200);
    return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid)
{
    SendDeathMessage(playerid, playerid, 201);
    return 1;
}
Reply
#10

i will tyr that!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)