25.04.2011, 21:50
Full filterscript, I just made it on my own .
I made it when you get 2 or more kills, you get spree counting, because it's stupid to put for 1 kill lol.
Just paste this into a new, blank filterscript, compile, and use.
Easy .
EDIT: Note that it's untested, but it should work, I can't find anything wrong .
I made it when you get 2 or more kills, you get spree counting, because it's stupid to put for 1 kill lol.
Just paste this into a new, blank filterscript, compile, and use.
pawn Код:
// Killing spree system by Mean
#include < a_samp >
new gPlayerKills[ MAX_PLAYERS ];
public OnPlayerConnect( playerid ) return gPlayerKills[ playerid ] = 0;
public OnPlayerDeath( playerid, killerid, reason )
{
new string[ 70 ], name[ 24 ];
GetPlayerName( killerid, name, 24 );
gPlayerKills[ killerid ]++;
gPlayerKills[ playerid ] = 0;
if( gPlayerKills[ killerid ] == 2 ) format( string, sizeof string, "%s made a double kill! ", name );
if( gPlayerKills[ killerid ] == 3 ) format( string, sizeof string, "%s made a triple kill! ", name );
if( gPlayerKills[ killerid ] == 4 ) format( string, sizeof string, "%s is on a killing spree! ", name );
if( gPlayerKills[ killerid ] == 5 ) format( string, sizeof string, "%s is a kill frenzy! ", name );
if( gPlayerKills[ killerid ] == 6 ) format( string, sizeof string, "%s is a kill atrocity!", name );
if( gPlayerKills[ killerid ] == 7 ) format( string, sizeof string, "%s is a kill manjarow!", name );
if( gPlayerKills[ killerid ] == 8 ) format( string, sizeof string, "%s is a killtastrophe!", name );
if( gPlayerKills[ killerid ] == 9 ) format( string, sizeof string, "%s is untouchable!", name );
if( gPlayerKills[ killerid ] == 10 ) format( string, sizeof string, "%s is a killionaire!", name );
if( gPlayerKills[ killerid ] > 10 ) format( string, sizeof string, "%s is still a killionaire! ( %d kills )", name, gPlayerKills[ killerid ] );
// You can add more :D.
return SendClientMessageToAll( 0xAAAAAA, string );
}
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
if( !strcmp( cmdtext, "/spree", true, 6 ) || !strcmp( cmdtext, "/streak", true, 7 ) )
{
new str[ 55 ];
format( str, sizeof str, "You are currently on a killing spree of %d kills.", gPlayerKills[ playerid ] );
return SendClientMessage( playerid, 0xAAAAAA, str );
}
return 0;
}
EDIT: Note that it's untested, but it should work, I can't find anything wrong .