Sniper kill
#1

Umh so, i finished scripting class system and inside of that i have the "Sniper" class, which gives extra score at who select this class and kill a player with sniper rifle. However, isn't working, the killer doesn't get score/money or even the message:

pawn Код:
if(reason == 34 && pInfo[killerid][Class] == 2) //reason == 34 is what i use for echo bots - class == 2 is the number of the class associated to "Sniper"
    {
    SCM(killerid, COLOR_YELLOW, "** Sniper Rifle kill as Sniper class! You got extra score/money and hp.");
    SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
    GivePlayerMoney(killerid, 3000);
    GameTextForPlayer(killerid, "~r~Sniper ~g~kill!", 3600, 4);
    }
I placed that code inside OnPlayerDeath.
Reply


Messages In This Thread
Sniper kill - by Face9000 - 15.05.2013, 22:23
Re : Sniper kill - by DaTa[X] - 15.05.2013, 22:25
Re: Sniper kill - by Face9000 - 15.05.2013, 22:28

Forum Jump:


Users browsing this thread: 1 Guest(s)