killing medals script
#2

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.

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;
}
Easy .

EDIT: Note that it's untested, but it should work, I can't find anything wrong .
Reply


Messages In This Thread
killing medals script - by Amine_Mejrhirrou - 25.04.2011, 21:08
Re: killing medals script - by Mean - 25.04.2011, 21:50
Re: killing medals script - by Admigo - 25.04.2011, 21:59
Re: killing medals script - by Mean - 25.04.2011, 22:00
Re: killing medals script - by Admigo - 25.04.2011, 22:06
Re : Re: killing medals script - by Amine_Mejrhirrou - 26.04.2011, 00:21
Re: killing medals script - by Lorenc_ - 26.04.2011, 01:57
Re: killing medals script - by Vince - 26.04.2011, 08:57
Re : Re: killing medals script - by Amine_Mejrhirrou - 26.04.2011, 09:03
Re: killing medals script - by Mean - 26.04.2011, 11:32

Forum Jump:


Users browsing this thread: 2 Guest(s)