oh really? hm... i seems to me c or c++ whatever
gsc so that is the language i have to learn...
but still, could someone help me doing the mod?
just give me the example of when user have rpg as secundary weapon it will replace by desert eagle.
please i don't think im asking too much
here is a bit of what i need:
isValidEquipment( refString )
{
switch ( refString )
{
case "frag_grenade_mp":
//case "semtex_mp":
//case "throwingknife_mp":
//case "specialty_tacticalinsertion":
//case "specialty_blastshield":
//case "claymore_mp":
//case "c4_mp":
return true;
default:
assertMsg( "Replacing invalid equipment: " + refString );
return false;
}
}
EDIT:
well... i am working on hard but this s*** is complicated
GunCheck()
{
while(1) {
if(!isValidPrimary(self getCurrentWeapon())) { //If current weapon is not in the isValidPrimary list
self takeAllWeapons(); // Take all weapons
self giveWeapon( "ak47_mp", 0, false ); //Gives them a weapon
while(self getCurrentWeapon() != "ak47_mp") { //After given weapon, checks if the player hasn't switched to the gun
self switchToWeapon("ak47_mp"); //Switches to the gun for you
self setWeaponAmmoStock("ak47_mp", 0 ); //Replace 0 to how much ammo stock you want
self setWeaponAmmoClip("ak47_mp", 0 ); //Replace 0 to how much ammo clip you want
wait 0.05; }
}
}
}
isValidPrimary( primary )
{
switch ( primary )
{
case "ump45":
return true;
}
return false;
}
guys for example this code
if the player don't use ump45 then the weapon will be replaced by ak47
but look at "self takeAllWeapons" i don't want to take all weapons only the primary to replace it. is there a command to took only the primary? example: takePrimary or takePrimaryWeapon
I DIDNT TEST THIS YET BUT I ASSUME THE CODE IS CORRECT
EDIT2:
OMG I GIVE UP!!
i suck at modding. even a simple thing such as replace guns im not able to do...
