Deathmessage
#1

Hey guys
how can i create death messages like
[killerid] [weaponpicture] [deathid]
?
Reply
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, reason, playerid);
    return 1;
}
Reply
#3

how to get it only on virtual world 0?
and this
Quote:
Originally Posted by [XG
Lj ]
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, reason, playerid);
    return 1;
}
dont work i jumped from a brige and nothing happens
Reply
#4

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if( GetPlayerVirualWorld( playerid ) ) == 0 )
    {  
        SendDeathMessage(killerid, reason, playerid);
    }
}
Reply
#5

Why would you use GetPlayerVirtualWorld?
Reply
#6

Quote:
Originally Posted by Schock
how to get it only on virtual world 0?
and this
Quote:
Originally Posted by [XG
Lj ]
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, reason, playerid);
    return 1;
}
dont work i jumped from a brige and nothing happens
It is supposed to show a text, like here

Reply
#7

Quote:
Originally Posted by SpiderPork
Why would you use GetPlayerVirtualWorld?
Please read this:
Quote:
Originally Posted by Schock
how to get it only on virtual world 0?
and this
Quote:
Originally Posted by [XG
Lj ]
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, reason, playerid);
    return 1;
}
dont work i jumped from a brige and nothing happens
Reply
#8

Quote:
Originally Posted by SpiderPork
Why would you use GetPlayerVirtualWorld?
i want it only in VW 0 caus i have a stuntserver with a little dm area and the dm area is in VW 2,3,4,5,6
and in 0 is the stuntmap i will only that the admins can easy see that a player gets killed by a gun in VW 0 to ban the player
Reply
#9

i want this:


but if i jump from a high point and die nothing happens
Reply
#10

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    return 1;
}
Try now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)