Author Topic: Best Respect system by Javed Ahmadzai (me)  (Read 4843 times)

0 Members and 1 Guest are viewing this topic.

Offline Javed Ahmadzai

  • Street Thug
  • *
  • Posts: 3
  • Admin in ASS Server
    • View Profile
    • http://www.asshosting.forumur.net/
Best Respect system by Javed Ahmadzai (me)
« on: October 21, 2012, 11:30:19 am »
Hi,

     Its Respect system for player for dm servers

For a beginning

[pawn]#define Respect                 353[/pawn]

OnGameModint

[pawn]SetTimer("OnPlayerRespect",70000, true);[/pawn]

The Main part of the script (function)

[pawn]GetPlayerRespect(playerid)
{

   if(Kills[playerid]<10)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect:~w~1/+0");
   }
   else if(Kills[playerid]<35 && Kills[playerid]>=10)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect:~w~2/+1");
   }
   else if(Kills[playerid]<75 && Kills[playerid]>=35)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect:~w~3/+2");
   }
   else if(Kills[playerid]<150 && Kills[playerid]>=75)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect:~w~4/+2");
   }
   else if(Kills[playerid]<250 && Kills[playerid]>=150)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect:~w~5/+2");
   }
   else if(Kills[playerid]<450 && Kills[playerid]>= 250)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~6/+3");
   }
   else if(Kills[playerid]<675 && Kills[playerid]>= 450)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~7/+4");
   }
   else if(Kills[playerid]<1000 && Kills[playerid]>= 625)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~8/+5");
   }
   else if(Kills[playerid]<1500 && Kills[playerid]>= 1000)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~9/+6");
   }
   else if(Kills[playerid]<3375 && Kills[playerid]>= 1500)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~10/+7");
   }
   else if(Kills[playerid]<3375 && Kills[playerid]>= 7650)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~11/+8");
   }
   else if(Kills[playerid]<7650 && Kills[playerid]>= 11475)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~12/+9");
   }
   else if(Kills[playerid]<11475 && Kills[playerid]>= 2650)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~13/+9");
   }
   else if(Kills[playerid]<26250 && Kills[playerid]>= 37500)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~14/+9");
   }
   else if(Kills[playerid]<37500 && Kills[playerid]>= 39375)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~15/+9");
   }
   else if(Kills[playerid]<39375 && Kills[playerid]>= 60000)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~16/+9");
   }
   else if(Kills[playerid]<60000 && Kills[playerid]>= 100000)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~25/+10");
   }
   else if(Kills[playerid]<100000 && Kills[playerid]>= 110000)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~35/+10");
   }
   else if(Kills[playerid]<110000 && Kills[playerid]>= 120000)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~50/+10");
   }
      else if(Kills[playerid]> 150000)
   {
   GameTextForPlayerBottom(playerid,"~o~Respect~x~=~y~100/+10");
   }
   return 1;
   
}

public OnPlayerRespect(playerid)
{
    for(new i = 0; i <= MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i)) GetPlayerRespect(i);

   if(Kills<10)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~1/+0");
   }
   else if(Kills<35 && Kills>=10)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~2/+1");
   }
   else if(Kills<75 && Kills>=35)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~3/+2");
   }
   else if(Kills<150 && Kills>=75)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~4/+2");
   }
   else if(Kills<250 && Kills>=150)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~5/+2");
   }
   else if(Kills<450 && Kills>= 675)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~6/+2");
   }
   else if(Kills<675 && Kills>= 1000)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~7/+3");
   }
   else if(Kills<1000 && Kills>= 1500)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~8/+4");
   }
   else if(Kills<1500 && Kills>= 2250)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~9/+5");
   }
   else if(Kills<2250 && Kills>= 3375)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~10/+6");
   }
   else if(Kills<3375 && Kills>= 5100)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~11/+7");
   }
   else if(Kills<5100 && Kills>= 7650)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~12/+8");
   }
   else if(Kills<7650 && Kills>= 11475)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~13/+9");                                                                                                                                                                 /*Scripted By Sufyan*/
   }
   else if(Kills<11475 && Kills>= 17500)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~14/+9");
   }
   else if(Kills<17500 && Kills>= 26250)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~15/+9");
   }
   else if(Kills<26250 && Kills>= 39375)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~16/+9");
   }
   else if(Kills<39375 && Kills>= 60000)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~17/+9");
   }
   else if(Kills<60000 && Kills>= 100000)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~25/+10");
   }
   else if(Kills< 100000 && Kills>= 110000)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~35/+10");
   }
      else if(Kills< 110000 && Kills>= 120000)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~50/+10");
      }
      else if(Kills> 150000)
   {
   GameTextForPlayerBottom(i,"~r~Respect:~w~100/+10");
   }
   }
   return 1;
}[/pawn]

Now for Player to see his respect

[pawn]   else if (strcmp(cmd, "!respect", true) == 0)
      {
          format(str,sizeof(str),"~r~Respect: ~w~%d",Kills[playerid]);
         GameTextForPlayerBottom(playerid,str);
         GetPlayerRespect(playerid);

         return 1;

    }[/pawn]

Sorry For My Bad English  :-\

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: Best Respect system by Javed Ahmadzai (me)
« Reply #1 on: October 22, 2012, 12:18:16 pm »
ahh nice one i will make it later
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline [RPG]_DON

  • Street Thug
  • *
  • Posts: 3
  • [RPG] Clan Co-Leader
    • View Profile
Re: Best Respect system by Javed Ahmadzai (me)
« Reply #2 on: October 22, 2012, 12:42:26 pm »
NOT BAD good !

Offline sherwin688

  • Street Thug
  • *
  • Posts: 43
  • dead man wakin
    • View Profile
Re: Best Respect system by Javed Ahmadzai (me)
« Reply #3 on: March 23, 2014, 07:51:09 am »
Thnx Sanit alot