Author Topic: Easy Spree System  (Read 5734 times)

0 Members and 1 Guest are viewing this topic.

Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Easy Spree System
« on: May 02, 2013, 08:31:24 pm »
[pawn]new INFO[256];[/pawn]


[pawn]public OnPlayerDeath(playerid, killerid, reason)
{
   if ( killerid == INVALID_PLAYER_ID )
   {
      new string[ 128 ], reasonText[ 16 ];
      switch( reason )
      {
         case 43: reasonText = "drowned";
         case 255: reasonText = "suicide";
      }
      format( string, 128, "** %s is death reason [%s]", gPlayers[ playerid ], reasonText );
      print( string );
            new szMsg[256];
      format( szMsg, sizeof( szMsg ),"[%s] is death reason [%s]",gPlayers[ playerid ], reasonText );
      SendClientMessageToAll(AMARILLO, szMsg );// CHANGE FOR YOUR COLOUR
      if ( GetPlayerMoney(playerid) > 199 ) MenosDinero(playerid,200);//change for you decplayerhandcash
      QuitaSpree(playerid);
}
    if (ObtenerSpree(killerid) == 4)
{
MasDinero(killerid,1500);// change for you incplayerhandcash
GameTextForPlayer(killerid,"~a~SPREE 5 Kills!!");
}
    if (ObtenerSpree(killerid) == 9)
{
MasDinero(killerid,2000);// change for you incplayerhandcash
GameTextForPlayer(killerid,"~a~SPREE 10 Kills!!");
}
    if (ObtenerSpree(killerid) == 14)
{
MasDinero(killerid,2500);// change for you incplayerhandcash
GameTextForPlayer(killerid,"~a~SPREE 15 Kills!!");
}
    if (ObtenerSpree(killerid) == 19)
{
MasDinero(killerid,3500);// change for you incplayerhandcash
GameTextForPlayer(killerid,"~a~SPREE 20 Kills!!");
}
    if (ObtenerSpree(killerid) == 24)
{
MasDinero(killerid,4500);// change for you incplayerhandcash
GameTextForPlayer(killerid,"~a~SPREE 25 Kills!!");
}
    MasDinero(killerid,300);// change for you incplayerhandcash
    SetPlayerHealth(killerid,100.0);
    SetWantedLevel(killerid,6);
    DarSpree(killerid,1);
    QuitaSpree(playerid);
    if ( GetPlayerMoney(playerid) > 199 ) MenosDinero(playerid,200); //change for you decplayerhandcash

    return 1;
}[/pawn]


Publics

[pawn]//==============================================================================
public ObtenerSpree(playerid)
{
    format(INFO,256, REGISTROS, gPlayers[playerid]);//change for you name of registers folders
   new spree; spree = dini_Int(INFO,"Spree");
   return spree;
}
public DarSpree( playerid, Amount )
{
   format( file, sizeof( file ), REGISTROS, gPlayers[ playerid ] );//change for you name of registers folders
   new asesinados; asesinados = dini_Int( file, "Spree" );
   dini_IntSet( file, "Spree", asesinados +Amount);
}
//==============================================================================

public QuitaSpree(playerid)
{
    format(INFO,256, REGISTROS, gPlayers[playerid]);//change for you name of registers folders
   dini_Unset(INFO,"Spree");
}
//==============================================================================[/pawn]

« Last Edit: May 02, 2013, 09:48:27 pm by aledark24 »
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Easy Spree System
« Reply #1 on: May 02, 2013, 09:32:14 pm »
First look: You used too many "if" . Try to use "switch".

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: Easy Spree System
« Reply #2 on: May 02, 2013, 09:40:13 pm »
First look: You used too many "if" . Try to use "switch".

but working well....
whit not bugs..
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Re: Easy Spree System
« Reply #3 on: May 02, 2013, 09:41:40 pm »
aledark you did this system spree more thing, This system will only function normally on the server that you created not the other type, REGISTROS, MasDinero, MenosDinero...

Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: Easy Spree System
« Reply #4 on: May 02, 2013, 09:43:41 pm »
aledark you did this system spree more thing, This system will only function normally on the server that you created not the other type, REGISTROS, MasDinero, MenosDinero...


read....
[pawn]
//change for you name of register folder...
//change for you incplayerhandcash
//change for you decplayerhandcash
// CHANGE FOR YOUR COLOUR
// if you are scripter... you understand, and change for you warchief...
[/pawn]

« Last Edit: May 02, 2013, 09:49:06 pm by aledark24 »
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Re: Easy Spree System
« Reply #5 on: May 02, 2013, 09:45:32 pm »
aledark you did this system spree more thing, This system will only function normally on the server that you created not the other type, REGISTROS, MasDinero, MenosDinero...


read....
[pawn]
//change for you name of register folder...
//change for you incplayerhandcash
//change for you decplayerhandcash
// if you are scripter... you understand, and change for you warchief...
[/pawn]

[pawn]Amarillo to YELLOW...[/pawn]

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Easy Spree System
« Reply #6 on: May 02, 2013, 09:51:47 pm »
First look: You used too many "if" . Try to use "switch".

but working well....
whit not bugs..

It can make lag on server.

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: Easy Spree System
« Reply #7 on: May 02, 2013, 10:03:30 pm »
First look: You used too many "if" . Try to use "switch".

but working well....
whit not bugs..

It can make lag on server.
whatever i not understand yet the switch xD
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: Easy Spree System
« Reply #8 on: May 03, 2013, 09:01:06 am »
Lol
Try find switch in gups and learn about it xD
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline Tomiijaja

  • Street Thug
  • *
  • Posts: 24
    • View Profile
Re: Easy Spree System
« Reply #9 on: May 12, 2013, 06:58:32 pm »
LoL spree with dini_set.. nice ._.

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Re: Easy Spree System
« Reply #10 on: May 12, 2013, 08:29:16 pm »
LoL spree with dini_set.. nice ._.
loool

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: Easy Spree System
« Reply #11 on: May 13, 2013, 10:15:58 am »
Does "Dini_set" will auto create if file not exist ?
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(