20.12.2010, 13:53
No need for timer, or OnPlayerUpdate etc. Easiest solutions are usually the best.
Have fun.
Have fun.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
// I would also add this, so the score is spree, not the total kills:
// SetPlayerScore(playerid, 0)
if( killerid != INVALID_PLAYER_ID )
{
SetPlayerScore(killerid,(GetPlayerScore(killerid))+1);
if( GetPlayerScore(killerid) == 15 )
//OR the following, to give armor to player for each kill, when 15 kills are reached
// if( GetPlayerScore(killerid) >= 15 )
{
SetPlayerArmour(killerid,GetPlayerArmour(killerid) + 10);
// OR!
SetPlayerArmour(killerid, 100);
}
}
return 1;
}