Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: jimmy 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
-
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
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;
}
-
thanks