Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - mrockxkingbutt

Pages: 1 2 3 [4] 5 6
46
ShowRoom (pawn) / 100% Racing Script Pawn Full By Me
« on: March 21, 2013, 07:36:23 am »
CMDS
!wins // Races Count // Count Your Races
!cd
!igiveup

TRACKS
5

Pickups
Many

ENJOY!!!!

CLICK HERE
https://hotfile.com/dl/199177024/7455b6e/Pawn_Racing.rar.html

47
Snippet Showroom / [BROKEN] Now Can Rob A Vehicle Money And HP
« on: March 21, 2013, 07:13:28 am »
[pawn]new Robbed[MAX_VEHICLES];[/pawn]

now cmd
[pawn]                     else if ( strcmp( cmd, "rob", true ) == 0 )
   {
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else   if(Robbed[vehicleid] == 1) SendClientMessage(playerid,RED," You Cant Steal It Again ");
else if(!IsPlayerInAnyVehicle(playerid)) MessagePM(playerid, GREEN,"[Error] - Need to be inside a vehicle");   
else
{
IncPlayerCash(playerid,1000);
Robbed[vehicleid] = 1;
SendClientMessageToAll(RED," A Vehicle Has Been Robbed By RObbers");
SetVehicleHealth(vehicleid, 500);
SetVehicleTyre(vehicleid,0);
SetVehicleAlarm(vehicleid,1);
SetVehicleLights(vehicleid,1);
    }
      return 1;
   }[/pawn]

now you can rob car cash and hp

48
Snippet Showroom / [SNIPPET]Team System Full ANd Final By Me
« on: March 12, 2013, 06:19:09 pm »
beginning
[pawn]new TEAM[MAX_PLAYERS];
new REQUEST[MAX_PLAYERS];
new DENY[MAX_PLAYERS];[/pawn]

now in onplayerspawn when team-mate spawn he got spawn to you
[pawn]new plr;
new Float:x, Float:y, Float:z;

      if(TEAM[playerid] == 1 || TEAM[ plr ] == 1  ) {

GetPlayerPos( plr, x, y, z );
SetPlayerPos( playerid, x, y + 1.0, z, 0, 0 );
}[/pawn]

now cmds
[pawn]            else if ( strcmp( cmd, "!team", true ) == 0 )
{
new plr;
tmp = strtok( cmdtext, idx );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREY, "Usage: !team [Nick/ID]" );     
else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );   
else if(TEAM[ plr ] == 1) SendClientMessage(playerid, GREEN," Player Is ALready In A Team");
else
{
SendClientMessage(plr, RED, " Player Wants To Team WIth You do /c accept or deny");
REQUEST[ plr ] = 1;
 }
      return 1;
   }
            else if ( strcmp( cmd, "!leaveteam", true ) == 0 )
{
new plr;
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if(REQUEST[playerid] == 0) SendClientMessage(playerid, GREEN," You are not in any team");
else
{
SendClientMessage(plr, RED, " Player Dont Want TO Team With You ANyMore");
TEAM[ plr ] = 0;
 }
      return 1;
   }
               else if ( strcmp( cmd, "!accept", true ) == 0 )
{
new plr;
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if(REQUEST[playerid] == 0) SendClientMessage(playerid, GREEN," You DOnt Have A Request");
else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );   
else
{
SendClientMessage(plr, RED, " You ARe Now In Team");
TEAM[ plr ] = 1;
TEAM[ playerid ] = 1;
GetPlayerPos( plr, x, y, z );
SetPlayerPos( playerid, x, y + 1.0, z, 0, 0 );
 }
      return 1;
   }
                  else if ( strcmp( cmd, "!deny", true ) == 0 )
{
new plr;
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if(REQUEST[playerid] == 0) SendClientMessage(playerid, GREEN," You DOnt Have A Request");
else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );   
else
{
SendClientMessage(plr, RED, " You ARe Not In Team");
TEAM[ plr ] = 0;
TEAM[ playerid ] = 0;
DENY[ playerid ] = 1;
DENY[ plr ] = 1;
 }
      return 1;
   }[/pawn]

CREDITS = SPIDER

SAW A BUG FEEL FREE TO POST



49
FEATURES
/c register
team
accept
deny
leaveteam
cwe = to set a event
join-event

DOWNLOAD HERE

www.facebook.com/download/493349997367388/AD.rar
DONT REMOVE CREDIT

50
mIRC/pawn Scripting / Bots System ( By Me ) ( Pawn )
« on: March 06, 2013, 02:48:34 pm »
here is fake bots
Code: [Select]
new RandomMSG[][]=
{

    "[BOT] : Is Online Now",
    "[BOT] : Is Active Now",
    "[BOT] : Is Now Going",
    "[BOT] : Irc admin Active",
    "[BOT] : Server Protector Online",
    "[BOT] : Help Center Online",
    "[BOT] : Server Is Online"

};
forward SendMSG();
new RandomMSG2[][]=
{

    "[BOT] : HELLO VCMP",
    "[BOT] : How Are You All",
    "[BOT] : Dont HAck Or Get Ban",
    "[BOT] : Dont Abuse Or Ban",
    "[BOT] : use /c getcar and get any vehicle",
    "[BOT] : I Am Created By Spider",
    "[BOT] : Server Is Created By Spider"

};
forward SendMSG2();

Code: [Select]
public SendMSG()
{
    new randMSG = random(sizeof(RandomMSG));
    SendClientMessageToAll(0xFF007FFF, RandomMSG[randMSG]); // Replace the "COLOR" with your defined color.
}
public SendMSG2()
{
    new randMSG2 = random(sizeof(RandomMSG2));
    SendClientMessageToAll(0xFF007FFF, RandomMSG2[randMSG2]); // Replace the "COLOR" with your defined color.
}

Code: [Select]
SetTimer("SendMSG", 10000, true);
SetTimer("SendMSG2", 10000, true);
SetTimer("DisplayBots",1000*60*1,1);
SetTimer("timechange", 10000, false);

Code: [Select]
else if ( strcmp( cmd, "botoff", true ) == 0 )
{
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !IsAuthorized( playerid, cmd ) ) SendClientMessage( playerid, COLOR_RED, "You don't have access to use this command!" );
else
{
 KillTimer(1);
 KillTimer(2);
 KillTimer(3);
 KillTimer(4);
}
return 1;
}
else if (strcmp(cmd, "setbot", true) == 0) {
new setbots[256];
tmp = strtok(cmdtext, idx);
if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, COLOR_RED, "You need to Rcon login first!");
else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c setbot text");
else {
format(file, sizeof(file), "/Bots/Bots.ini", "Bots");
   format(setbots,sizeof(setbots),"Bot %s : %s",gPlayers[playerid],cmdtext[7]);
dini_Set(file, "Bots", setbots);
}
return 1;
}
else if ( strcmp( cmd, "boton", true ) == 0 )
{
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !IsAuthorized( playerid, cmd ) ) SendClientMessage( playerid, COLOR_RED, "You don't have access to use this command!" );
else
{
SetTimer("SendMSG", 10000, true);
SetTimer("SendMSG2", 10000, true);
}
return 1;
}

Code: [Select]
//=========BOT REPLY
else if (strcmp(cmd, "f9-n-u", true) == 0 )
{
 SendClientMessage(playerid, RED," [BOT] I AM ALSO FINE");
    return 1;
}
else if (strcmp(cmd, "f9-and-u", true) == 0 )
{
 SendClientMessage(playerid, RED," [BOT] I AM ALSO FINE");
    return 1;
}
else if (strcmp(cmd, "fine-and-you", true) == 0 )
{
 SendClientMessage(playerid, RED," [BOT] I AM ALSO FINE");
    return 1;
}
else if (strcmp(cmd, "thanks", true) == 0 )
{
 SendClientMessage(playerid, RED," [BOT] your welcome");
    return 1;
}
else if (strcmp(cmd, "are-you-a-bot", true) == 0 )
{
 SendClientMessage(playerid, RED," [BOT] Yes i am a bot");
    return 1;
}
else if (strcmp(cmd, "is-this-server-is-sq", true) == 0 )
{
 SendClientMessage(playerid, RED," [BOT] no");
    return 1;
}
else if (strcmp(cmd, "is-this-server-is-pawn", true) == 0 )
{
 SendClientMessage(playerid, RED," [BOT] yes");
    return 1;
}
else if (strcmp(cmd, "id", true) == 0 )
{
 SendClientMessage(playerid, RED," [BOT] our account on fb mrockx mani");
    return 1;
}

Code: [Select]
public DisplayBots()
{
new Msg[256];
new xgv[256];
format(file, sizeof(file), "/Bots/Bots.ini");
xgv = dini_Get(file, "Bots");

    format(Msg,sizeof(Msg),"[BOT] %s Online You Can CHat Now",xgv);
SendClientMessageToAll(COLOR_YELLOW, Msg);
return 1;
}
all here
need any help ask here
any bug post here

51
Servers / [R2x]Zombies City Server
« on: March 01, 2013, 11:34:38 pm »
IP 94.249.249.106:6000
CLANS PRO,TZ,HF,PK,USA
MEGA-CLAN R2x
Players 5/50
Hosted Now

52
Start With Wanted System
/// TIMERS
[pawn]SetTimer("DisplayWanted",1000*60*1,1);[/pawn]
public
[pawn]public DisplayWanted()
{
new Msg[256];
      new xgv[256];
   format(file, sizeof(file), "/Wanted/Wanted.ini");
   xgv = dini_Get(file, "Wanted");
   
          format(Msg,sizeof(Msg),"Wanted Player :%s",xgv);
         SendClientMessageToAll(COLOR_YELLOW, Msg);

}[/pawn]
Now Step 2
Salute System
[pawn]   else if ( strcmp( cmd, "salute", true ) == 0 )
   {
      new snick[ 128 ], plr, szMsg[ 128 ];
      snick = strtok( cmdtext, idx ), plr = FindPlayerIDFromString( snick);
      if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
      else if ( !strlen(snick) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: /c salute [Nick/ID]" );
        else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );
      else
      {
         format( szMsg, sizeof( szMsg ), "%s salute player:[ %s ] As A Good Guy", gPlayers[ playerid ], gPlayers[ plr ] );
         SendClientMessageToAll( COLOR_GREEN, szMsg );
         format( szMsg, sizeof( szMsg ), "%s salute You", gPlayers[ plr ] );
  SendClientMessage(plr, RED, szMsg );
      }
      return 1;
   }[/pawn]
/// now lms
[pawn]enum LMSInfo
{
   OnLMS,
   LockLMS,
   CountLMS,
   Float:MinXS,
   Float:MaxXS,
   Float:MinYS,
   Float:MaxYS,
   Float:PosXS,
   Float:PosYS,
   Float:PosZS,
   IntS,
   RewS,
   CDLMS,
   WinnerS[256],
}[/pawn]
[pawn]new LMS1;[/pawn]
[pawn]new gLMS[LMSInfo];[/pawn]
[pawn]new Float:RandInfoLMS[15][7] = { // MinX, MaxX, MinY, MaxY , X , Y , Z , Interior
{-1102.2737,-1075.0229,1267.8066,1393.5516,-1094.28332519, 1307.67419433, 34.24106979},// Satelite del Estadio
{-1708.7883, -1540.6664, -524.5789, -463.3878, -1635.2369, -501.1630, 50.1828},// Arriba de un edificio en los Aviones cerca de la Militar.
{-1013.4427, -924.8788, 698.5222, 777.5504, -969.2894, 743.3184, 57.2507},// Ariba de un edifico cerca de la Pizzeria Downtown.
{-833.6387, -754.4878, 806.6534, 855.1415, -804.1165, 815.6527, 11.0846},//En un parquedero de autos atras de la Rstacion de Bomberos.
{542.0474, 590.8376, -110.5802, -70.8055, 568.1187, -84.2334, 9.4397},//aqui hay duda = Es en el tinaco grande que esta en Malibu.
{91.7778, 167.5648, 329.0602, 357.0180, 128.2160, 343.1032, 19.1541},// Este es en la cancha de Golf.
{-44.6020, -27.4109, 1178.2372, 1213.4877, -37.6370, 1197.8688, 21.4526},// Este es en la cancha de los ladrones cerca del Estudio.
{-1200.9607, -1167.4662, -1349.8386, -1312.9932, -1183.3875, -1334.0931, 14.9360}, // Este es en el Muelito cerca del Aeropuerto.
{-1107.7136, -1057.4801, -288.9542, -239.3820, -1081.9669, -262.2973, 20.4579}, // Arriba de la Imprenta
{-1107.7972, -1069.2410, -634.8514, -594.0654, -1090.0913, -616.2128, 11.2534}, // Cerca del Cafe Rubina
{-1003.6110, -955.4279, 96.3539, 142.3303, -978.6742, 119.9475, 9.2628}, // En las chositas de Little Heavana
{-998.5562, -902.6942, 369.7229, 427.0913, -954.6682, 397.8014, 11.2516}, // No se como se llama, pero lo conosco como secreto xD
{196.3628, 236.3812, -1297.0651, -1252.8628, 230.3235, -1266.7476, 20.1141}, //En el Suite de Tommy
{98.4118, 135.2352, -1340.5229, -1308.0060, 121.8333, -1328.8723, 4.4396}, // Cerca del Pole Position, es como Mini Centro
{-18.8285, 27.5851, -949.9951, -927.9282, 4.2093, -941.0284, 16.1160} // Es el Mercadito que esta cerca de un Hospital.
};
////////////////////////////////////////////////////////////////////////////////
new RandRewardLMS[10][1] = {
{500},
{1500},
{3000},
{4500},
{6000},
{7500},
{9000},
{12500},
{16000},
{25000}
};[/pawn]
[pawn]    else if (strcmp(cmd, "!lms", true) == 0) {
      if (IsPlayerInfo(playerid,cmd)) return 0;
      else if(gLMS[OnLMS] == 1) MessagePM(playerid, GREEN,"[Error] - Last Man Standing currently activated.");
      else {
             StarLMS();
      }
      return 1;
    }

    else if (strcmp(cmd, "!join", true) == 0) {
      if (IsPlayerInfo(playerid,cmd)) return 0;
      else if(gLMS[OnLMS] == 0) MessagePM(playerid, GREEN,"[Error] - Last Man Standing currently disabled.");
      else if(plInfo[playerid][JoinLMS] == 1) MessagePM(playerid, GREEN,"[Error] - You are already in Last Man Standing.");
      else if(gLMS[LockLMS] == 1) MessagePM(playerid, GREEN,"[Error] - You can't enter the Last Man Standing.");
      else {
           JoinPlayerLMS(playerid);
      }
      return 1;
    }[/pawn]
[pawn]//==============================================================================
//------------------------ FUNCTIONS TO LMS GAME -------------------------------
//==============================================================================
public StarLMS()
{
    new rand1 = random(sizeof(RandInfoLMS)), rand2 = random(sizeof(RandRewardLMS));
   new Float:x, Float:y, Float:z, Float:MinX, Float:MaxX, Float:MinY, Float:MaxY;
   MinX = RandInfoLMS[rand1][0],MaxX = RandInfoLMS[rand1][1],MinY = RandInfoLMS[rand1][2],MaxY = RandInfoLMS[rand1][3];
   x = RandInfoLMS[rand1][4],y = RandInfoLMS[rand1][5],z = RandInfoLMS[rand1][6];
    gLMS[MinXS] = MinX, gLMS[MaxXS] = MaxX, gLMS[MinYS] = MinY, gLMS[MaxYS] = MaxY;
    gLMS[PosXS] = x, gLMS[PosYS] = y, gLMS[PosZS] = z, gLMS[RewS] = RandRewardLMS[rand2][0], gLMS[OnLMS] = 1;
    SetTimer("CloseJoinLMS",20000,0);
    MessageAll(BLUE, "LMS Activate, type !join to enter, wait players [20 Seg.]");
    return 1;
}
//==============================================================================
public JoinPlayerLMS(playerid)
{
    new Float:x, Float:y, Float:z;
    MessagePM(playerid, GREEN,"Joined to Last Man Standing, waiting more players...");
    GetPlayerPos(playerid,x,y,z);
   IncLMSCount(1);
   TogglePlayerControllable(playerid,0);
   ResetPlayerWeapons(playerid);
   format(MSN,256,"%s",gPlayers[playerid]);
   plInfo[playerid][pX] = x, plInfo[playerid][pY] = y, plInfo[playerid][pZ] = z;
    plInfo[playerid][JoinLMS] = 1;
    SetPlayerPos(playerid,gLMS[PosXS], gLMS[PosYS], gLMS[PosZS], 0,0);
    if (IsPlayerInAnyVehicle(playerid)) plInfo[playerid][LastVehicle] = GetPlayerVehicleID(playerid);
    return 1;
}
//==============================================================================
public CloseJoinLMS()
{
    if (gLMS[CountLMS] == 0) {MessageAll(BLUE, "LMS has closed because no players."); SetTimer("QuitBugLMS",1000,0);}
    if (gLMS[CountLMS] == 1) {MessageAll(BLUE, "LMS has closed because need more players."); QuitPlayerLMS();}
    else if (gLMS[CountLMS] >= 2) {
         MessageAll(BLUE, "LMS is now closed, you can't get at moment.");
         MessageAll(BLUE, "Starting the game Last Man Standing.");
       gLMS[LockLMS] = 1;
        SetTimer("CountLMS1", 1000, 0);
        SetTimer("CountLMS2", 2000, 0);
         SetTimer("CountLMS3", 3000, 0);
       SetTimer("CountLMS4", 4000, 0);
    }
    return 1;
}
//==============================================================================
public StarGameLMS()
{
    if (gLMS[CountLMS] == 0) {MessageAll(BLUE, "LMS has ended because no players."); KillTimer(LMS1); SetTimer("QuitBugLMS",1000,0);}
    else if (gLMS[CountLMS] == 1) {MessageAll(BLUE, "LMS has completed and a winner."); KillTimer(LMS1); SetTimer("InfoPlayerWinLMS",500,0); SetTimer("SendPlayerRewardLMS",1000,0);}
    else if (gLMS[CountLMS] >= 2) {
         for(new i = 0; i <= MAX_PLAYERS; i++) {
             new plr = FindPlayerIDFromString(gPlayers);
             if(plInfo[plr][JoinLMS] == 1){
                if(!NeedPlayerInArea(plr,gLMS[MinXS],gLMS[MaxXS],gLMS[MinYS],gLMS[MaxYS])) {SetPlayerPos(plr,gLMS[PosXS], gLMS[PosYS], gLMS[PosZS], 0,0); GameTextForPlayerBottom(plr,"~h~re-join!");}
                else GameTextForPlayerBottom(plr,"\x10");
             }
       }
   }
   return 1;
}
//==============================================================================
public QuitPlayerLMS()
{
   SetTimer("QuitBugLMS",2000,0);
    for(new i = 0; i <= MAX_PLAYERS; i++) {
        new plr = FindPlayerIDFromString(gPlayers);
        if(plInfo[plr][JoinLMS] == 1){
           gLMS[LockLMS] = 0, gLMS[OnLMS] = 0, plInfo[plr][JoinLMS] = 0;
           TogglePlayerControllable(plr,1);
           SetPlayerWeapon(plr,19,9999);
          SetPlayerWeapon(plr,22,9999);
          SetPlayerWeapon(plr,32,9999);
          DecLMSCount(1);
          if (plInfo[plr][LastVehicle] >= 1) {PutDirectlyInVehicle(plr,plInfo[plr][LastVehicle]); plInfo[plr][LastVehicle] = 0;}
          else SetPlayerPos(plr,plInfo[plr][pX],plInfo[plr][pY],plInfo[plr][pZ],0,0);
        }
    }
    return 1;
}
//==============================================================================
public QuitBugLMS()
{
    gLMS[LockLMS] = 0;
    gLMS[OnLMS] = 0;
    gLMS[CountLMS] = 0;
}
//==============================================================================
public InfoPlayerWinLMS()// Funcion para determinar el que gano.
{
    gLMS[LockLMS] = 0, gLMS[OnLMS] = 0, gLMS[CountLMS] = 0;
    for(new i = 0; i <= MAX_PLAYERS; i++) {
        new plr = FindPlayerIDFromString(gPlayers);
        if(plInfo[plr][JoinLMS] == 1){
         format(MSN,256,"%s",gPlayers[plr]);
           gLMS[WinnerS] = MSN;
           }
    }
    return 1;
}
//==============================================================================
public SendPlayerRewardLMS()// Funcion para determinar el que gano.
{
   new plr = FindPlayerIDFromString(gLMS[WinnerS]);
    TextBigAllFormat("~h~ LMS winner: ~o~%s",gPlayers[plr]);
    MessageAllFormat(BLUE, "%s is the winner of LMS, Reward:$ %d.",gPlayers[plr],gLMS[RewS]);
    IncPlayerCash(plr,gLMS[RewS]);
    SetPlayerWeapon(plr,15,9999);
    SetPlayerWeapon(plr,17,9999);
    SetPlayerWeapon(plr,29,9999);
    SetPlayerPos(plr,plInfo[plr][pX],plInfo[plr][pY],plInfo[plr][pZ],0,0);
    IncPlayerWinLMS(plr,1);
    plInfo[plr][JoinLMS] = 0;
   SetTimer("QuitBugLMS",1000,0);
   if (plInfo[plr][LastVehicle] >= 1) {PutDirectlyInVehicle(plr,plInfo[plr][LastVehicle]); plInfo[plr][LastVehicle] = 0;}
   else SetPlayerPos(plr,plInfo[plr][pX],plInfo[plr][pY],plInfo[plr][pZ],0,0);
}
//==============================================================================
public CountLMS1()
{
    for(new i = 0; i <= MAX_PLAYERS; i++) {
    new plr = FindPlayerIDFromString(gPlayers);
    if(plInfo[plr][JoinLMS] == 1){
      GameTextForPlayer(plr,"~b~-~y~ 3 ~b~-");
     }
   }
   return 1;
}
//==============================================================================
public CountLMS2()
{
    for(new i = 0; i <= MAX_PLAYERS; i++) {
    new plr = FindPlayerIDFromString(gPlayers);
    if(plInfo[plr][JoinLMS] == 1){
      GameTextForPlayer(plr,"~b~-~x~ 2 ~b~-");
     }
   }
   return 1;
}
//==============================================================================
public CountLMS3()
{
    for(new i = 0; i <= MAX_PLAYERS; i++) {
    new plr = FindPlayerIDFromString(gPlayers);
    if(plInfo[plr][JoinLMS] == 1){
      GameTextForPlayer(plr,"~b~-~h~ 1 ~b~-");
     }
   }
   return 1;
}
//==============================================================================
public CountLMS4()
{
   LMS1 = SetTimer("StarGameLMS",1000,1);
    for(new i = 0; i <= MAX_PLAYERS; i++) {

    new plr = FindPlayerIDFromString(gPlayers);
    if(plInfo[JoinLMS] == 1){
       GameTextForPlayer(plr,"~b~- ~o~Go! Go! Go! ~b~-");
       SetPlayerWeapon(plr,21,9999);
      SetPlayerWeapon(plr,23,9999);
      SetPlayerWeapon(plr,32,9999);
      SetPlayerHealth(plr,100.0);
       TogglePlayerControllable(plr,1);
       }
   }
   return 1;
}
//==============================================================================
public GetLMSCount()
{
   return gLMS[CountLMS];
}
//==============================================================================
public IncLMSCount(amount)
{
   gLMS[CountLMS] = gLMS[CountLMS] + amount;
}
//==============================================================================
public DecLMSCount(amount)
{
   gLMS[CountLMS] = gLMS[CountLMS] - amount;
}
//==============================================================================
[/pawn]
Now Race System
[pawn]new Race[MAX_PLAYERS];[/pawn]
[pawn]      else if ( strcmp( cmd, "!race", true ) == 0 )
   {
      new cash;
      if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
      else if(Race[playerid] == 1) SendClientMessage(playerid, GREEN,"[Error]: Race currently activated.");
    else
      {
   SendClientMessage(playerid, BLUE,"Joined, waiting more players...");
SendClientMessage(playerid, RED,"Your Race Is From Here To SunShine Autos");
   SendClientMessage(playerid, RED,"[Server]: Enter In Any Car, Dont try To Kill Any Player.");
         Race[playerid] = 1;
         SetPlayerPos(playerid,-838.9772,562.1517, 10.9280, 0, 0);
         SetPlayerMoney(playerid,cash+5000);
      }
      return 1;
   }
         else if ( strcmp( cmd, "!race2", true ) == 0 )
   {
      new cash;
      if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
      else if(Race[playerid] == 1) SendClientMessage(playerid, GREEN,"[Error]: Race currently activated.");
      else
      {
  SendClientMessage(playerid, BLUE,"Joined, waiting more players...");
SendClientMessage(playerid, RED,"Your Race Is From Here To Prawn Island Bridge");
  SendClientMessage(playerid, RED,"[Server]: Enter In Any Car, Dont try To Kill Any Player.");
  SetPlayerPos(playerid,-1740.8760,-1736.2510, 14.8680, 0, 0);
  SetPlayerMoney(playerid,cash+5000);
      Race[playerid] = 1;
      }
      return 1;
   }    [/pawn]
CREDITS
SALUTE SYSTEM = Spider[Me]
WANTED SYSTEM = Spider[Me]
RACE SYSTEM = Spider[me]
LMS SYSTEM = From Warcheif Pawn
Reward System From Warcheif


SAW A BUG REPORT IT NOW!!!!!!!!!










53
mIRC/pawn Scripting / [Fixed]Rank System
« on: February 22, 2013, 11:34:42 pm »
Code: [Select]
new Kills[MAX_PLAYERS],Deaths[MAX_PLAYERS];[pawn]new Pname[MAX_PLAYER_NAME];[/pawn]
[pawn]#define Ranks                   353[/pawn]
in onplayerconnect
[pawn]    if(!dini_Exists("Deaths.cfg"))
   {
     dini_Create("Deaths.cfg");
   }

   if(!dini_Exists("Kills.cfg"))
   {
     dini_Create("Kills.cfg");
   }
   
   GetPlayerName(playerid, Pname, MAX_PLAYER_NAME);
    Deaths[playerid] = dini_Int("Deaths.cfg", Pname);
    Kills[playerid] = dini_Int("Kills.cfg", Pname);
[/pawn]
in onplayerdissconnect
[pawn]   /* Player leaved get his stats currently of kills and deaths got updated */
     GetPlayerName(playerid, Pname, MAX_PLAYER_NAME);
     dini_IntSet("Deaths.cfg", Pname, Deaths[playerid]);
     dini_IntSet("Kills.cfg", Pname, Kills[playerid]);[/pawn]
[pawn]      else if (strcmp(cmd, "myrank", true) == 0)
      {
          format(str,sizeof(str),"~r~rank ~w~%d",GetPlayerRank(playerid));
         GameTextForPlayerBottom(playerid,str);

         return 1;
}
      [/pawn]
[pawn]      else if (strcmp(cmd, "!myrank", true) == 0)
      {
          format(str,sizeof(str),"~r~Kills: ~w~%d",Kills[playerid]);
         GameTextForPlayerBottom(playerid,str);
         GetPlayerRank(playerid);

         return 1;

    }
[/pawn]
[pawn]GetPlayerRank(playerid)
{

   if(Kills[playerid]<10)
   {
   GameTextForPlayerBottom(playerid,"~r~RANK:~w~Newbie Shooter");
   }
   else if(Kills[playerid]<25 && Kills[playerid]>=10)
   {
   GameTextForPlayerBottom(playerid,"~r~RANK:~w~Killer Shooter");
   }
   else if(Kills[playerid]<75 && Kills[playerid]>=25)
   {
   GameTextForPlayerBottom(playerid,"~r~RANK:~w~Master Shooter");
   }
   else if(Kills[playerid]<150 && Kills[playerid]>=75)
   {
   GameTextForPlayerBottom(playerid,"~r~RANK:~w~Pro Shooter");
   }
   else if(Kills[playerid]<250 && Kills[playerid]>=150)
   {
   GameTextForPlayerBottom(playerid,"~r~RANK:~w~Striker Shooter");
   }
   else if(Kills[playerid]<450 && Kills[playerid]>= 250)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~Freekill Shooter");
   }
   else if(Kills[playerid]<675 && Kills[playerid]>= 450)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~Psycho Shooter");
   }
   else if(Kills[playerid]<1000 && Kills[playerid]>= 625)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~Fatal Shooter");
   }
   else if(Kills[playerid]<1500 && Kills[playerid]>= 1000)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~Havoc Shooter");
   }
   else if(Kills[playerid]<3375 && Kills[playerid]>= 1500)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~Extreme Shooter");
   }
   else if(Kills[playerid]<3375 && Kills[playerid]>= 7650)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~Wild Shooter");
   }
   else if(Kills[playerid]<7650 && Kills[playerid]>= 11475)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~Hazardous Shooter");
   }
   else if(Kills[playerid]<11475 && Kills[playerid]>= 2650)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~IGI Shooter");
   }
   else if(Kills[playerid]<26250 && Kills[playerid]>= 37500)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~Tactical Shooter");
   }
   else if(Kills[playerid]<37500 && Kills[playerid]>= 39375)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~Dedicated Shooter");
   }
   else if(Kills[playerid]<39375 && Kills[playerid]>= 60000)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~Insane Shooter");
   }
   else if(Kills[playerid]<60000 && Kills[playerid]>= 100000)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~The Real Shooter");
   }
   else if(Kills[playerid]<100000 && Kills[playerid]>= 100000)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~Professional Shooter");
   }
   else if(Kills[playerid]> 100000)
   {
   GameTextForPlayerBottom(playerid,"~o~rank~x~=~y~Rockstar Shooter");
   }
   return 1;
   
}
stock GetPlayerKills(playerid)
{
   return Kills[playerid];
}
stock GetPlayerDeaths(playerid)
{
   return Deaths[playerid];
}

public OnPlayerRank(playerid)
{
    for(new i = 0; i <= MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i)) GetPlayerRank(i);
   
   if(Kills<10)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Newbie Shooter");
   }
   else if(Kills<25 && Kills>=10)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Killer Shooter");
   }
   else if(Kills<75 && Kills>=25)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Master Shooter");
   }
   else if(Kills<150 && Kills>=75)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Pro Shooter");
   }
   else if(Kills<250 && Kills>=150)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Striker Shooter");
   }
   else if(Kills<450 && Kills>= 675)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Freekill Shooter");
   }
   else if(Kills<675 && Kills>= 1000)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Psycho Shooter");
   }
   else if(Kills<1000 && Kills>= 1500)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Fatal Shooter");
   }
   else if(Kills<1500 && Kills>= 2250)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Havoc Shooter");
   }
   else if(Kills<2250 && Kills>= 3375)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Extreme Shooter");
   }
   else if(Kills<3375 && Kills>= 5100)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Wild Shooter");
   }
   else if(Kills<5100 && Kills>= 7650)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Hazardous Shooter");
   }
   else if(Kills<7650 && Kills>= 11475)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~IGI Shooter");                                                                                                                                                                 /*Scripted By Sufyan*/
   }
   else if(Kills<11475 && Kills>= 17500)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Tactical Shooter");
   }
   else if(Kills<17500 && Kills>= 26250)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Dedicated Shooter");
   }
   else if(Kills<26250 && Kills>= 39375)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Insane Shooter");
   }
   else if(Kills<39375 && Kills>= 60000)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~The Real Shooter");
   }
   else if(Kills<60000 && Kills>= 100000)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Professional Shooter");
   }
   else if(Kills> 100000)
   {
   GameTextForPlayerBottom(i,"~r~RANK:~w~Rockstar Shooter");
   }
   }
   return 1;
}[/pawn]
i neeed  this display every 1 minutes our rank
as player kills he got increase his rank
i have deaths and kills cfg
but i need if i type !myrank it shows my kills not rank name
or if i type /c myrank it shows rank1,2,3,4,5,6, etc
HELP

54
[pawn]#include <a_vcmp>
#define COLOR_GREY 0xAFAFAFAA
//------------------------------------------------------------------------------------------------------

main()
{
   print("\n  ----------------------------------\n");
   printf("    PSA Filterscript\n");
   printf("    \tby [TDH]Boss\n");
   print("  ----------------------------------\n");
}

//------------------------------------------------------------------------------------------------------

public OnFilterScriptInit()
{
   SetTimer("PSAtimer",100,1); // PSA timer activation.
   return 1;
}

//------------------------------------------------------------------------------------------------------

public OnFilterScriptExit()
{
}

//------------------------------------------------------------------------------------------------------

public OnPlayerConnect(playerid)
{
    GetPlayerName(playerid,GetNick(playerid),MAX_PLAYER_NAME);
   new str[256];
   format(str,256,"3[%d] %s joined the server.",playerid,GetNick(playerid));
    SendToIRC(str);
   return 1;
}

//------------------------------------------------------------------------------------------------------

public OnPlayerDisconnect(playerid, reason)
{
   new str[256];
   format(str,256,"3[%d] %s left the server.",playerid,GetNick(playerid));
    SendToIRC(str);
   return 1;
}

//------------------------------------------------------------------------------------------------------

public OnPlayerDeath(playerid, killerid, reason, bodypart)
{
   new str[256];
   if(killerid == INVALID_PLAYER_ID) format(str,256,"4[%d] %s died",playerid,GetNick(playerid));
   else format(str,256,"4[%d] %s killed [%d] %s (%s)",killerid,GetNick(killerid),playerid,GetNick(playerid),GetWeapon(reason));
   SendToIRC(str);
    return 1;
}

//------------------------------------------------------------------------------------------------------

public OnPlayerText(playerid, cmdtext[])
{
   new str[256];
   format(str,256,"2[%d]7 %s:1 %s",playerid,GetNick(playerid),cmdtext);
    SendToIRC(str);
   return 1;
}

//------------------------------------------------------------------------------------------------------

/*public OnPlayerTextMe(playerid, cmdtext[])
{
   new str[256];
   format(str,256,"6[%d]6 %s6 %s",playerid,GetNick(playerid),cmdtext);
    SendToIRC(str);
   return 1;
}*/

//------------------------------------------------------------------------------------------------------

PerformSQLquery(str[]) // PSA function for performing queries.
{
   new File: file;
   file = fopen("sql_input.psa");
   fwrite(file,str);
   fclose(file);
   return false;
}

//------------------------------------------------------------------------------------------------------

PerformSQLquerySelect(qid[], str[]) // PSA function for performing "select" queries.
{
   format(str,sizeof(str),"%d %s",qid,str);
   new File: file;
   file = fopen("sql_input.psa");
   fwrite(file,str);
   fclose(file);
   return false;
}

//------------------------------------------------------------------------------------------------------

OnQueryResult(qid[], str[]){ // Function for outputting "select" queries results. qid is the one from PerformSQLquerySelect.
   printf("Received query %s: %s",qid,str);
}

//------------------------------------------------------------------------------------------------------

SendToIRC(str[]) // PSA function for sending things to IRC.
{
   new File: file;
   file = fopen("irc_input.psa");
   fwrite(file,str);
   fclose(file);
   return false;
}

//------------------------------------------------------------------------------------------------------

public PSAtimer() // PSA timer for reading things from IRC.
{
   new cont[1024], str[256], File: file;
   if(fexist("irc_output.psa")){
      file = fopen("irc_output.psa");
      fread(file,cont,sizeof(cont));
      fclose(file);
      while(strfind(cont,"\n")>0){
          strmid(str,cont,0,strfind(cont,"\n"));
          strdel(cont,0,strfind(cont,"\n"));
         SendClientMessageToAll(COLOR_GREY,str);
         print(str);
      }
      fremove("irc_output.psa");
   }
   if(fexist("sql_output.psa")){
      new qid[256];
      file = fopen("sql_output.psa");
      fread(file,cont,sizeof(cont));
      fclose(file);
      while(strfind(cont,"\n")>0){
          strmid(str,cont,0,strfind(cont,"\n"));
          strdel(cont,0,strfind(cont,"\n"));
          new space = strfind(qid," ");
          strmid(qid,str,0,space);
          strdel(str,0,space);
         OnQueryResult(qid,str);
         //SendClientMessageToAll(COLOR_GREY,str);
         //print(str);
      }
      fremove("sql_output.psa");
   }
}
forward PSAtimer();

//------------------------------------------------------------------------------------------------------

GetNick(playerid)
{
   new Nick[MAX_PLAYER_NAME];
   if(IsPlayerConnected(playerid)) GetPlayerName(playerid,Nick,sizeof(Nick));
   else format(Nick,sizeof(Nick),"0");
   return Nick;
}

//------------------------------------------------------------------------------------------------------

GetWeapon(weaponid)
{
   new Wep[MAX_PLAYER_NAME];
   GetWeaponName(weaponid,Wep,sizeof(Wep));
   return Wep;
}
#pragma unused PerformSQLquerySelect
#pragma unused PerformSQLquery[/pawn]
this is a fixed filterscript you can you this as filterscript or as you can add this in your script

55
ShowRoom (pawn) / [R2x] Crime City Server Official By Me
« on: February 16, 2013, 01:24:27 pm »
SImple Script Like A Roleplay
Time To Release My Script no #2 update version
here
Download
https://hotfile.com/dl/194645565/503e390/Missions.rar.html
Bankjob // To Be A robber And RObbank
COp // To Be A COP ANd STop Robbers
tools1 // nuttertools
tools2 // thugstools
tools3 // professionaltools
aspirine // heal
preciousprotection // armour
race // race1
race2 // race 2
FP // deatails about Finding Pickups Mission
missions // to know cmds
ALL BUGS ARE FIXED
ENJOY!!!!!!
Credits For Spider,NeskWriter And VC

56
Snippet Showroom / Vice CIty Missions Script By Me
« on: February 15, 2013, 05:49:38 pm »
5 missions
bankjob  // dont use this cmd
cop // dont use this cmd
fp// finding packages
race
race2

Download Here
https://hotfile.com/dl/194531737/321e82d/Missions.rar.html
Open Button Regular Download




57
Snippet Showroom / Mini Mission 5 By Me Package Finding
« on: February 15, 2013, 12:13:09 pm »

begining
[pawn]new Package1[MAX_PLAYERS];
new Package2[MAX_PLAYERS];
new Package3[MAX_PLAYERS];
new Package4[MAX_PLAYERS];
new Package5[MAX_PLAYERS];
new Package6[MAX_PLAYERS];
new Package7[MAX_PLAYERS];
new Package8[MAX_PLAYERS];
new Package9[MAX_PLAYERS];[/pawn]
this is in onpickedup
[pawn]    if(pickupid == 183) {
    GameTextForPlayer(playerid, "You Found Package");
Package1[playerid] = 1;
}
    if(pickupid == 184) {
    GameTextForPlayer(playerid, "You Found Package");
Package2[playerid] = 1;
}
    if(pickupid == 185) {
    GameTextForPlayer(playerid, "You Found Package");
Package3[playerid] = 1;
}
    if(pickupid == 186) {
    GameTextForPlayer(playerid, "You Found Package");
Package4[playerid] = 1;
}
    if(pickupid == 187) {
    GameTextForPlayer(playerid, "You Found Package");
Package5[playerid] = 1;
}
if(pickupid == 188) {
    GameTextForPlayer(playerid, "You Found Package");
Package6[playerid] = 1;
}
    if(pickupid == 189) {
    GameTextForPlayer(playerid, "You Found Package");
Package7[playerid] = 1;
}
    if(pickupid == 190) {
    GameTextForPlayer(playerid, "You Found Package");
Package8[playerid] = 1;
}
    if(pickupid == 191) {
    GameTextForPlayer(playerid, "You Found Package");
Package9[playerid] = 1;
SendClientMessage(playerid,RED, "NOW GOTO BANK AND USE !PAY ANd Get Cash");
}[/pawn]
this is in ongamemodeinit
[pawn]AddStaticPickup(183,410,-564.9205, 785.2129, 22.8768);
AddStaticPickup(184,410,-603.8260, 634.3389, 12.2347);
AddStaticPickup(185,410,-895.9302, 440.7797, 15.0725);
AddStaticPickup(186,410,-846.9323, -75.3983, 11.5558);
AddStaticPickup(187,410,-1012.1729, -252.1051, 10.3194);
AddStaticPickup(188,410,-1006.2412, 196.3303, 10.9204);
AddStaticPickup(189,410,-1095.5785, 332.7760, 10.7842);
AddStaticPickup(190,410,-746.6312, 250.1251, 15.8442);
AddStaticPickup(191,410,-788.6240, 28.8877, 10.6330);[/pawn]
this is in onplayertext
[pawn]   else if ( strcmp( cmd, "!pay", true ) == 0 )
   {
   if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
   else if(Package1[playerid] == 0) SendClientMessage(playerid, RED,"You DOnt Have ALL Pickups");
   else   if(Package2[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups");
   else   if(Package3[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups");
   else   if(Package4[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups.");
   else   if(Package5[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups.");
   else   if(Package6[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups");
   else   if(Package7[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups.");
   else   if(Package8[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups.");
   else   if(Package9[playerid] == 0) SendClientMessage(playerid, RED,"[Error]: You DOnt Have ALL Pickups.");
      else
      {
               new pmoney = GetPlayerMoney(playerid);
               SetPlayerMoney(playerid, pmoney + 50000);
      SendClientMessage(playerid,RED," You Have Found All Pickups And Get Paid ");
      Package1[playerid] = 0;
      Package2[playerid] = 0;
      Package3[playerid] = 0;
      Package4[playerid] = 0;
      Package5[playerid] = 0;
      Package6[playerid] = 0;
      Package7[playerid] = 0;
      Package8[playerid] = 0;
      Package9[playerid] = 0;
    }
  return 1;
   }[/pawn]

GOOD LUCK


58
VC:MP Clans / [R2x] Friends Fighting Zone Extreme CLan
« on: February 14, 2013, 11:48:39 pm »
Homepage : www.friendsfightzone.mysmf.com
members
[R2x]CLinton
[R2]Abbasi
[R2x]Rexd
[R2x]Wanted
[R2x]xxReaperxx
leaders
[R2x]SPider
[R2x]Uzair
govt
[R2x]Government
VIP
0

59
Race Test
Missing Features track 3,4,5 , User-File, Register, Money, FIghting
ADDED Features track 1 , 2, checkpoints 5 cmds, 180 vehicles added
!cd to count
!igiveup to quit race
!race to race 1
!race2 to race 2

Download Here

https://hotfile.com/dl/194235830/13da34c/Pawn_Racing.rar.html

60
mIRC/pawn Scripting / Help My Script Get Bug With Aledark Script
« on: February 12, 2013, 11:39:17 pm »
how to fix this bug
when i go in server
my server crash
plz help

Pages: 1 2 3 [4] 5 6