OnPlayerDeath
#1

Hey all! I have this script:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(playerid,killerid,reason);
    SendClientMessage(killerid, COLOR_RED, ".:: NO Deathmatching is Tolerated! ::.");
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    SetPlayerPos(playerid, 1182.2816,-1324.0585,13.5799);
    SetPlayerPos(killerid, 1760.0499,-1538.4115,9.3113);
    SendClientMessage(killerid, COLOR_RED, ".:: You have been teleported to Prison, but you're free to teleport! ::.");
    SendClientMessage(killerid, COLOR_RED, ".:: You lost $35'000,- for DM'ing ::.");
    GivePlayerMoney(killerid,-35000);
    return 1;
}
and instead of this as an example: " Cir.Cuz [AK47 SIGN] Random_Dude " " It says Random_Dude [AK47 SIGN] Cir.Cuz "

(thats when I kill randomdude...) Need help!
Reply
#2

Just a mistake at SendDeathMessage:

pawn Код:
SendDeathMessage(killerid, playerid, reason);
First killerid,after playerid.
Reply
#3

aah LOL! Didn't noticed that.. thanks alot mate!
Reply
#4

pawn Код:
SendDeathMessage(killerid, playerid, reason);
Not

pawn Код:
SendDeathMessage(playerid, killerid, reason);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)