Killstreak?
#6

pawn Код:
public OnPlayerDeath(playerid, killerid, reason) // You count kills here.
{
    SetPVarInt(killerid,"KillStreak",GetPVarInt(killerid,"KillStreak") + 1);
    SetPVarInt(playerid,"KillStreak",0);
    return 1;
}

// And when you make a command, you add this check before it can be used:

if(GetPVarInt(playerid,"KillStreak") >= 5)
Reply


Messages In This Thread
Killstreak? - by BigAl - 20.11.2010, 20:19
Re: Killstreak? - by Whizion - 20.11.2010, 20:22
Re: Killstreak? - by BigAl - 20.11.2010, 20:23
Re: Killstreak? - by WillyP - 20.11.2010, 20:25
Re: Killstreak? - by [L3th4l] - 20.11.2010, 20:27
Re: Killstreak? - by Whizion - 20.11.2010, 20:28
Re: Killstreak? - by [NWA]Hannes - 20.11.2010, 20:32
Re: Killstreak? - by BigAl - 20.11.2010, 20:40
Re: Killstreak? - by WillyP - 20.11.2010, 20:47

Forum Jump:


Users browsing this thread: 6 Guest(s)