[HEL]kill player 2 times
#1

how to make that if player killed 2 players he will say text " u are the best"
Reply
#2

Код:
OnPlayerDeath	
         if(GetPlayerScore(killerid) == 2)
	{
		SendClientMessage(killerid,COLOUR_BLUE,"Your on a 2 kill killing spree.");
		return 1;
	}
Reply
#3

Well, do something like:

pawn Код:
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;
}
Something like that should work.
Reply
#4

error : invalid expression, assumed zero
Reply
#5

no no i fixd thanx you a loooooooooooooooooootttt man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)