SA-MP Forums Archive
Deathmessage - 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: Deathmessage (/showthread.php?tid=64947)



Deathmessage - Schock - 08.02.2009

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


Re: Deathmessage - Lewwy - 08.02.2009

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



Re: Deathmessage - Schock - 08.02.2009

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


Re: Deathmessage - Marcel - 08.02.2009

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



Re: Deathmessage - SpiderPork - 08.02.2009

Why would you use GetPlayerVirtualWorld?


Re: Deathmessage - LibertyWorld - 08.02.2009

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




Re: Deathmessage - Marcel - 08.02.2009

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



Re: Deathmessage - Schock - 08.02.2009

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


Re: Deathmessage - Schock - 08.02.2009

i want this:


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


Re: Deathmessage - Lewwy - 08.02.2009

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