OnDialogResponse - Punish the KillerID
#4

Top of script:
pawn Код:
new JustKilledBy[MAX_PLAYERS];
OnPlayerConnect:

pawn Код:
JustKilledBy[playerid] = 999;
OnPlayerDeath:

pawn Код:
JustKilledBy[playerid] = killerid;
and Dialog:

pawn Код:
if(dialogid == Bestrafen)
    {
      new Killername[MAX_PLAYERS],string[256],string1[256];
      GetPlayerName(JustKilledBy[playerid], Killername, sizeof(Killername));
      if(response
      {
        if(listitem == 0)
        {
            GivePlayerMoney(JustKilledBy[playerid], -5000);
            JustKilledBy[playerid] = 999;
        }
        return 1;
Reply


Messages In This Thread
OnDialogResponse - Punish the KillerID - by SureShot - 26.11.2009, 17:16
Re: OnDialogResponse - Punish the KillerID - by dice7 - 26.11.2009, 17:17
Re: OnDialogResponse - Punish the KillerID - by ExoSanty - 26.11.2009, 17:42
Re: OnDialogResponse - Punish the KillerID - by miokie - 26.11.2009, 17:54
Re: OnDialogResponse - Punish the KillerID - by Correlli - 26.11.2009, 18:07
Re: OnDialogResponse - Punish the KillerID - by AKA_Cross - 26.11.2009, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)