Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
beginning problem
#1
hello i am a beginner and i sa the tutorial for beginners
i have a question
i want to give him a special weapon when he respawned:

giveWeapon(famas_mp, 0, calcWeaponOptions ( gold, 0, 0, 0, 1 ));

but cod gives me errors ! help please

Reply

#2
replace the word "gold" with 15.
Reply

#3
i says the erorrs
tahts my code:
giveWeapon(famas_mp, 0, calcWeaponOptions ( 15, 0, 0, 0, 1 ));
Reply

#4
did you put self giveWeapon ( famas_mp, 0, calcWeaponOptions ( 15, 0, 0, 0, 1 ) );
Reply

#5
yes my code is:
self giveWeapon(famas_mp, 0, calcWeaponOptions ( 15, 0, 0, 0, 1 ));
but alsway error grrrr!!
Reply

#6
try

self giveWeapon("famas_mp", 0, calcWeaponOptions ( 15, 0, 0, 0, 1 ));

Reply

#7
now it say unknow fuction Huh
Reply

#8
self giveWeapon ( "famas_mp" , 0, self calcWeaponOptions ( 15, 0, 0, 1, 1 ) );



If that doesn't work, copy and paste what you have changed here.
Reply

#9
probebly i past it in the flase line
where do you have thi line?
Reply

#10
Code:
onPlayerSpawned()
{
    self endon( "disconnect" );
    while( true )
    {
        self waittill( "spawned_player" );
           self takeAllWeapons();
           self giveWeapon ( "famas_mp" , 0, self calcWeaponOptions ( 15, 0, 0, 1, 1 ) );
           self switchtoweapon("famas_mp");
        self giveWeapon( "python_mp" );
                self switchtoweapon("python_mp");
        self giveWeapon( "flash_grenade_mp" );
        self giveWeapon( "frag_grenade_zm" );
        self giveweapon( "knife_mp" )


It should look something like this.. pending on what you want to give them...
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Android problem Yamato 12 8,122 04-25-2014, 04:49
Last Post: ScHmIdTy56789
  Problem with Rain Effects on Maps mitchhacker 5 4,829 10-22-2013, 00:46
Last Post: mitchhacker
  Help Liberation Problem Yamato 27 24,825 07-17-2013, 19:54
Last Post: feature
  [xna 4]Rendering problem narkos 9 5,883 07-03-2013, 19:00
Last Post: Nekochan
  Help Problem God plugin v4.0 4nonymous 1 2,716 06-22-2013, 23:25
Last Post: 8q4s8
  Help Infected Shop Plugin Problem Hallla 2 3,146 05-06-2013, 18:29
Last Post: Hallla
  problem with gsc code CheGuevara 5 5,582 04-20-2013, 15:06
Last Post: Nekochan
  problem to connect to server s.j-rez 0 2,223 04-17-2013, 18:18
Last Post: s.j-rez
  warning problem AndEEDJay 0 2,097 04-08-2013, 09:54
Last Post: AndEEDJay
Sad [News] The beginning of the end of the internet as we know it. JariZ 12 6,495 04-05-2013, 18:16
Last Post: SuperNovaAO

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.