Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: MatheuS on July 25, 2012, 01:33:57 am

Title: helpe !buywep for gups
Post by: MatheuS on July 25, 2012, 01:33:57 am
I want to put a help! buywep stores my server can you help me put?
Title: Re: helpe !buywep for gups
Post by: aledark24 on July 25, 2012, 02:36:57 am
[pawn]         else if(strcmp(cmd,"buycolt",true) == 0)
      {
      new param[256];
       param = strtok(cmdtext,idx);
      new cash;
       
      cash = GetPlayerMoney(playerid);
        if(strcmp(param,"buycolt",true) == 0)
      if(cash >= 1500)
      {
      SetPlayerWeapon(playerid,17,200);
      SendClientMessage(playerid,RED,"Compraste una colt");
      DecPlayerHandCash(playerid,1500);
      }[/pawn]

this command give to you a colt you change the name of command and SetplayerWeapon example

[pawn]         else if(strcmp(cmd,"buyuzi",true) == 0)
      {
      new param[256];
       param = strtok(cmdtext,idx);
      new cash;
       
      cash = GetPlayerMoney(playerid);
        if(strcmp(param,"buyuzi",true) == 0)
      if(cash >= 1500)
      {
      SetPlayerWeapon(playerid,23,200);
      SendClientMessage(playerid,RED,"Compraste una uzi");
      DecPlayerHandCash(playerid,1500);
      }[/pawn]
Title: Re: helpe !buywep for gups
Post by: MatheuS on July 25, 2012, 03:14:18 am
gracias aledark my soy Matheus_br q entras en el sv
Title: Re: helpe !buywep for gups
Post by: aledark24 on July 25, 2012, 06:38:31 am
 ;D ;D ;D ;D 8) 8) 8) 8)