SA-MP Forums Archive
Need Help in killing Spree! - 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)
+--- Thread: Need Help in killing Spree! (/showthread.php?tid=337134)



Need Help in killing Spree! - iOmar - 25.04.2012

Hey Guys.
===> i have Put This. But it show that the player who killed got killing spree not killer?? Please help me

pawn Код:
if(GetPlayerScore(killerid) == 5)
    {
        SetPlayerScore(killerid, GetPlayerScore(killerid)+2);
        GivePlayerMoney(killerid, 1000);
       
        new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
        format(string,sizeof string,"Server News: %s is Now On Killing Spree Of 5 ",pName);
        SendClientMessageToAll(0xFF8000FF,string);
        SendClientMessage(killerid,COLOR_GREEN,"Congratulation! You Got +2 Scores and 1000$ Money For Killing 5 in Row!");
        return 1;
    }



Re: Need Help in killing Spree! - SuperViper - 25.04.2012

pawn Код:
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
should be

pawn Код:
GetPlayerName(killerid,pName,MAX_PLAYER_NAME);



Re: Need Help in killing Spree! - iOmar - 25.04.2012

oK thanks. REP added...