Author Topic: cmd problem  (Read 2406 times)

0 Members and 1 Guest are viewing this topic.

Offline jimmy

  • Wiseguy
  • **
  • Posts: 94
    • View Profile
cmd problem
« on: January 16, 2012, 05:56:41 am »
hey guys see this topic plzzz http://forum.vicecitymultiplayer.com/index.php?topic=4386.0
and i made a cmd for weps i want that i have to write !gunspack1 then i get some weps together this is the cmd its compiling but not working

   else if ( strcmp( cmd, "!gunspack1", true ) == 0 )
   {
    ResetPlayerWeapons(playerid),
      SetPlayerWeapon(playerid, 32, 26, 15, 10, 29, 24, 20 );
      format(szMsg, 128, "%s has taken a GunsPack1 for some DeathMatch.",gPlayers[playerid]);
       SendClientMessageToAll( BLUE, szMsg );
      return 1;
   }

this is my cmd help me its not giving me weps
Storm City Owner

Stormcity.smfnew.com

Offline SaFeeR

  • Street Thug
  • *
  • Posts: 37
  • Pawno Scripter
    • View Profile
    • PaK-ServeR Website
Re: cmd problem
« Reply #1 on: January 16, 2012, 03:03:05 pm »
i get some weps together this is the cmd its compiling but not working

   else if ( strcmp( cmd, "!gunspack1", true ) == 0 )
   {
    ResetPlayerWeapons(playerid),
      SetPlayerWeapon(playerid, 32, 26, 15, 10, 29, 24, 20 );
      format(szMsg, 128, "%s has taken a GunsPack1 for some DeathMatch.",gPlayers[playerid]);
       SendClientMessageToAll( BLUE, szMsg );
      return 1;
   }

this is my cmd help me its not giving me weps
becoz you r using setplayerweapon
use giveplayerweapon

take this
tested
Code: [Select]
else if ( strcmp( cmd, "!gunspack1", true ) == 0 )
   {
       ResetPlayerWeapons(playerid);
     GivePlayerWeapon(playerid, 24, 999999 );
      GivePlayerWeapon(playerid, 29, 999999 );
      GivePlayerWeapon(playerid, 10, 999999 );
      GivePlayerWeapon(playerid, 15, 999999 );
      GivePlayerWeapon(playerid, 26, 999999 );
      GivePlayerWeapon(playerid, 32, 999999 );
      GivePlayerWeapon(playerid, 20, 999999 );
      format(szMsg, 128, "%s has taken a GunsPack1 for some DeathMatch.",gPlayers[playerid]);
       SendClientMessageToAll( BLUE, szMsg );
      return 1;
    }
If You Like My Scripting Like My Page


Offline jimmy

  • Wiseguy
  • **
  • Posts: 94
    • View Profile
Re: cmd problem
« Reply #2 on: January 16, 2012, 05:50:11 pm »
thanks
Storm City Owner

Stormcity.smfnew.com