SA-MP Forums Archive
[HEL]kill player 2 times - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HEL]kill player 2 times (/showthread.php?tid=241765)



[HEL]kill player 2 times - bboytimix - 18.03.2011

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


Re: [HEL]kill player 2 times - TheYoungCapone - 18.03.2011

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



Re: [HEL]kill player 2 times - antonio112 - 18.03.2011

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.


Re: [HEL]kill player 2 times - bboytimix - 18.03.2011

error : invalid expression, assumed zero


Re: [HEL]kill player 2 times - bboytimix - 18.03.2011

no no i fixd thanx you a loooooooooooooooooootttt man