Heres my code! i always get the syntax error and i cant see the problem :(
hope you guys can help me! :)
(IM BER PRO AT CODDING, no seriously im new at modding so please dont make comment like omg youre noob!)
hope you guys can help me! :)
(IM BER PRO AT CODDING, no seriously im new at modding so please dont make comment like omg youre noob!)
Code:
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
self takeallweapons();
if(self.team == "axis")
{
self setperk ("specialty_fastreload");
self giveWeapon ( "knife_ballistic_mp");
self switchToWeapon("knife_ballistic_mp");
self thread JumpersAmmo();
self doClientDvar("jump_height", 39 );
self thread maps\mp\gametypes\_hud_message::hintMessage("^1You are now a Jumper!" );
}
if(self.team == "allies")
{
self setperk "(specialty_fastreload");
self setperk "(speciality_movefaster");
self giveWeapon ( "m14_grip_silencer_mp");
self switchToWeapon("m14_grip_silencer_mp");
self SetWeaponAmmoStock( "m14_grip_silencer_mp", 69 );
self clearPerks();
self thread maps\mp\gametypes\_hud_message::hintMessage("^1You are now a Hacker!" );
}
// Refills jumpers ammo.
JumpersAmmo()
self giveMaxAmmo("knife_ballistic_mp");
wait 2.0;
self thread JumpersAmmo();
}