SendDeathMessage But Instead OnPlayerConnect! [HELP]
#1

Hey, I've seen on a few servers that have the icon of 2 computers, as when they connect and disconnect.

Can Anyone can tell me how to do that? I tried searching on wiki but i found nothing.
Reply
#2

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

pawn Код:
public OnPlayerConnect(playerid)
{
    SendDeathMessage(playerid, playerid, 200);
    //REst of code
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    SendDeathMessage(playerid, playerid, 201);
    //REst of code
    return 1;
}
Should work - Untested.
Reply
#3

It does. Thank you Sir.
Reply
#4

Anytime.
Reply
#5

Icon of 2 computers?
Reply
#6

Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
Icon of 2 computers?
Yes, let me upload a picture.
Reply
#7

OH, nice
Reply
#8

And How can I show only 1 name from me?

Like when I connect my name is left and when I disconnect my name is right?
Reply
#9

Quote:
Originally Posted by Flashy
And How can I show only 1 name from me?

Like when I connect my name is left and when I disconnect my name is right?
try messing with the SendDeathMessage(playerid, playerid, 200); & SendDeathMessage(playerid, playerid, 201);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)