OnPlayerDeath Problem
#1

pawn Код:
if(killerid == INVALID_PLAYER_ID && GetPVarInt(playerid, "gInDuel") == 1)
    {
        new gBet = GetPVarInt(playerid, "gDuelBet");

        GivePlayerMoneyEx(playerid, -gBet);
        GivePlayerMoneyEx(killerid,  gBet);

        new str[220];
        format(str, sizeof(str), " %s  committed suicide during a duel with %s.", PlayerName(playerid), PlayerName(GetPVarInt(playerid, "gInviterID")));
        SendClientMessageToAll(red, str);

        new duelerid = GetPVarInt(playerid, "gInviterID");

        RemoveFromDuel(duelerid);
        RemoveFromDuel(playerid);
        SpawnPlayer(duelerid);
    }
I have a duel filterscript and it works fine. When player kill other player or when player do suicide etc. But when i try to input the duel filterscript into my gamemode this part of function doesn't work. Can anyone tell me if there is a mistake somewhere coz in filterscript this part works normally. I even tried to remove everything from OnPlayerDeath and left only this function but nothing helped.
Reply


Messages In This Thread
OnPlayerDeath Problem - by Cypress - 16.06.2011, 12:00
Re: OnPlayerDeath Problem - by Lorenc_ - 16.06.2011, 12:04
Re: OnPlayerDeath Problem - by Cypress - 16.06.2011, 12:14
Re: OnPlayerDeath Problem - by Lorenc_ - 16.06.2011, 12:21
Re: OnPlayerDeath Problem - by Cypress - 16.06.2011, 12:28
Re: OnPlayerDeath Problem - by WooTFTW - 16.06.2011, 12:45
Re: OnPlayerDeath Problem - by Lorenc_ - 17.06.2011, 01:09

Forum Jump:


Users browsing this thread: 1 Guest(s)