onplayerdeath message
#2

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

    FadePlayerScreen(playerid, 0xFFFFFFCC, 6, 192);
    GameTextForPlayer(playerid,"~w~LOL, YOU DIED",1000,1);
    GameTextForPlayer(killerid,"~r~You Murderer!",4000,3);
    if( DMZone[killerid] >= 1 )
    {
        GivePlayerMoney(killerid, 1000);
    }
    if( DMZone[killerid] == 0 )
    {
        GivePlayerMoney(killerid, -2000);
        SendClientMessage(killerid, COLOR_RED, "Please don't kill others outside deathmatch zones. (-2000$)");
    }
    if(IsInDM[playerid] ==1)
    {
        SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
        SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
        GivePlayerMoney(killerid, 1800);
        GivePlayerMoney(playerid, -1000);
    }
    if(IsInDM[playerid] ==0)
    {
        SetPlayerScore(killerid,GetPlayerScore(killerid)-1);
        GivePlayerMoney(killerid, -2000);
    }
    IsInDM[playerid] = 0;
    nojump2[playerid] = 0;

    return 1;
}
Just like this?
Reply


Messages In This Thread
onplayerdeath message - by ColdIce - 08.06.2011, 14:36
Re: onplayerdeath message - by Jeffry - 08.06.2011, 17:13
Re: onplayerdeath message - by ColdIce - 08.06.2011, 17:16
Re: onplayerdeath message - by Jeffry - 08.06.2011, 17:43
Re: onplayerdeath message - by ColdIce - 08.06.2011, 17:45
Re: onplayerdeath message - by ColdIce - 08.06.2011, 17:47
Re: onplayerdeath message - by ColdIce - 08.06.2011, 17:52
Re: onplayerdeath message - by Jeffry - 08.06.2011, 17:55
Re: onplayerdeath message - by ColdIce - 08.06.2011, 18:01
Re: onplayerdeath message - by ColdIce - 08.06.2011, 18:06

Forum Jump:


Users browsing this thread: 3 Guest(s)