Author Topic: buywep system in all Ammu-Nation  (Read 4964 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
buywep system in all Ammu-Nation
« on: March 17, 2013, 07:49:17 pm »
[pawn]      else if ( strcmp( cmd, "buywep", true ) == 0 || strcmp( cmd, "comprararma", true ) == 0 )
   {
         tmp = strtok( cmdtext, idx );
         if ( !strlen( tmp ) ) SendClientMessage( playerid, 0xFFFF00AA, "Write: /c buywep [weapon name/ID]" );
         if ( !strlen( tmp ) ) SendClientMessage( playerid, 0xFFFF00AA, "Escribe: /c comprararma [nombreArma/ID]" );
       else if(PlayerToPoint(7, playerid,364.11175, 1059.95654, 19.19139) || PlayerToPoint(7, playerid,-63.83909, -1477.56042, 10.44908) || PlayerToPoint(7, playerid,-673.11517, 1204.90148, 11.10896)){
         new cash = GetPlayerMoney(playerid);
         new wep, String[128];
             if(cash >= 1000) {
            SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 1000);
          wep = FindWepIDFromString( tmp );
         SetPlayerWeapon(playerid, wep, 1000);
           DecPlayerHandCash(playerid,1000);
            format( String, sizeof( String ), "Bought  weapon  || Compraste el arma: [%s]",NombreArmas(FindWepIDFromString(tmp)));
            SendClientMessage(playerid, 0xFFFF00AA, String );
          }
           if(cash < 999) {
           SendClientMessage(playerid,0xFFFF00AA,"Need $1000 to buy a weapon! || Necesitas $ 1000 para comprar un arma");
           }
         }
           else
            {
        SendClientMessage(playerid,0xFFFF00AA,"Need to be in Ammu-Nation For buy Weapons");
        SendClientMessage(playerid,0xFFFF00AA,"Necesitas estar en Ammu-Nation para comprar armas");
      }
      return 1;
   }[/pawn]

Publics

[pawn]public NombreArmas(wep)
{
   new w[256];
if (wep == 1) w = "Brass Knuckle";
if (wep == 2) w = "Screw Driver";
if (wep == 3) w = "Golf Club";
if (wep == 4) w = "Night Stick";
if (wep == 5) w = "Knife";
if (wep == 6) w = "Baseball Bat";
 if (wep == 7) w = "Hammer";
if (wep == 8) w = "Cleaver";
if (wep == 9) w = "Machete";
if (wep == 10) w = "Katana";
if (wep == 11) w = "Chainsaw";
if (wep == 12) w = "Grenade";
if (wep == 13) w = "Remote Grenade";
if (wep == 14) w = "TearGas";
if (wep == 15) w = "Molotov";
if (wep == 16) w = "Missile";
if (wep == 17) w = "Colt45";
if (wep == 18) w = "Python";
if (wep == 19) w = "Shotgun";
if (wep == 20) w = "Spaz";
if (wep == 21) w = "Stubby";
if (wep == 22) w = "Tec9";
if (wep == 23) w = "Uzi";
if (wep == 24) w = "Ingrams";
if (wep == 25) w = "MP5";
if (wep == 26) w = "M4";
if (wep == 27) w = "Ruger";
if (wep == 28) w = "Sniper Rifle";
if (wep == 29) w = "Laser Scope";
if (wep == 30) w = "Rocket Launcher";
if (wep == 31) w = "Flame Thrower";
if (wep == 32) w = "M60";
if (wep == 33) w = "Minigun";
   return w;
}[/pawn]

[pawn]//==============================================================================
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
        return 1;
    }
    return 0;
}
//==============================================================================[/pawn]

Mensaje en español

Para quienes se creen scripter de la pagina llena de spam llamada "comunidadpro" Creada por Dilson peralta, y que se creen con el derecho de sacar cada comando de cada usuario de este foro... y postearla libremente diciendo que es su idea, en especial el usuario "tomijaja"
Pues no son mas que noobs que no entienden las funciones de un script y sepan que aunque se crean "pro" o "scripters" no son mas que pobres diablos que no pueden hacer nada por si solos....
« Last Edit: March 17, 2013, 07:55:32 pm by aledark24 »
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline .ElBoyz

  • Street Thug
  • *
  • Posts: 15
  • ¿ What's up doc ?
    • View Profile
Re: buywep system in all Ammu-Nation
« Reply #1 on: March 17, 2013, 10:23:19 pm »
good command aledark

Quote
Mensaje en español
Para quienes se creen scripter de la pagina llena de spam llamada "comunidadpro" Creada por Dilson peralta, y que se creen con el derecho de sacar cada comando de cada usuario de este foro... y postearla libremente diciendo que es su idea, en especial el usuario "tomijaja"
Pues no son mas que noobs que no entienden las funciones de un script y sepan que aunque se crean "pro" o "scripters" no son mas que pobres diablos que no pueden hacer nada por si solos....

and tomijaja is rob commands , enter my server to insult - jaja!

NICE COMMANDS
« Last Edit: March 17, 2013, 10:26:37 pm by .ElBoyz »

Offline Fire_Head

  • Street Thug
  • *
  • Posts: 35
    • View Profile
Re: buywep system in all Ammu-Nation
« Reply #2 on: March 18, 2013, 12:26:34 am »
Can u explain This Cmd and Function in English plZz

Offline .ElBoyz

  • Street Thug
  • *
  • Posts: 15
  • ¿ What's up doc ?
    • View Profile
Re: buywep system in all Ammu-Nation
« Reply #3 on: March 18, 2013, 04:25:26 am »
Fire_Head this commands is for buy weapon in all ammunation and his function is sell by money $   "command in english and spanish"
« Last Edit: March 18, 2013, 04:42:01 am by .ElBoyz »

Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: buywep system in all Ammu-Nation
« Reply #4 on: March 18, 2013, 02:55:01 pm »
Can u explain This Cmd and Function in English plZz

This command is easy, is for buy weapons in all amu-nation and show you te name of guns

example if you write /c buywep bb
say you bought a [stubby]
and give to you a stubby whit 9999 of ammo...


better work in RPG gamemodes
if you want buy weapons like sq
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline [DM]Megatrinton

  • Street Thug
  • *
  • Posts: 4
    • View Profile
Re: buywep system in all Ammu-Nation
« Reply #5 on: March 19, 2013, 04:08:27 am »
+1.

This command would be a great help for Deathmatchers. Nice Suggesstion.