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
replace the word "gold" with 15.
i says the erorrs
tahts my code:
giveWeapon(famas_mp, 0, calcWeaponOptions ( 15, 0, 0, 0, 1 ));
did you put self giveWeapon ( famas_mp, 0, calcWeaponOptions ( 15, 0, 0, 0, 1 ) );
yes my code is:
self giveWeapon(famas_mp, 0, calcWeaponOptions ( 15, 0, 0, 0, 1 ));
but alsway error grrrr!!
try
self giveWeapon("famas_mp", 0, calcWeaponOptions ( 15, 0, 0, 0, 1 ));
now it say unknow fuction
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.
probebly i past it in the flase line
where do you have thi line?
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...