18.03.2011, 18:04
how to make that if player killed 2 players he will say text " u are the best"
OnPlayerDeath if(GetPlayerScore(killerid) == 2) { SendClientMessage(killerid,COLOUR_BLUE,"Your on a 2 kill killing spree."); return 1; }
public OnPlayerDeath(playerid, killerid, reason)
{
SetPvarInt( killerid, "Rampage", GetPVarInt( killerid, "Rampage" ) + 1 );
if( GetPVarInt( killerid, "Rampage" ) == 2 )
{
SendClientMessage( killerid, -1, "You are the best." );
SetPVarInt( killerid, "Rampage", 0 );
}
return 1;
}