June 26, 2019, 11:10:11 PM

Author Topic: help with skill setting/cmd  (Read 1292 times)

Offline -çÇ- Mr.BrightSide

  • Level 5 Trained Intermediate
  • *****
  • Posts: 108
  • Country: 00
    • Controlled Chaos
help with skill setting/cmd
« on: July 26, 2010, 03:57:13 PM »
i coded a race that will give you 1 random gun out of 4 and then unlimmed ammo
but i came to conclusion.. that i messed up this is what i got

Code: [Select]
"5"
{
"name" "name depending"
"author" "Mr.BrightSdie"
"shortdescription" "Fast"
"required_level" "0"
"maximum_level" "0"
"allow_only" "<admins>"
"teamlimit" "0"
"preloadcmd" "0"
"player_spawn_cmd" "0"
"round_start_cmd" "0"
"round_end_cmd" "0"
"numberofskills" "3"
"numberoflevels" "8"
"skillnames" "ramdom gun|ammo|balloon shoe's"
"skilldescr" "ramdom gun|low grav|invis/speed"
"skillcfg" "player_spawn|player_spawn|player_spawn"

"skill1_setting" "es_xset random 0;es_xrand random 1 4"
"racealias_m4a1" "es est_give event_var(userid) weapon_m4a1 1"
"racealias_ak47" "es est_give event_var(userid) weapon_ak47 1"
"racealias_aug" "es est_give event_var(userid) weapon_aug 1"
"racealias_mp5navy" "es est_give event_var(userid) weapon_mp5navy 1"
"skill1_cmd" "if (server_var(wcs_chance) >= server_var(wcs_dice)) then racealias_m4a1;if (server_var(wcs_chance) >= server_var(wcs_dice)) then racealias_ak47;if (server_var(wcs_chance) >= server_var(wcs_dice)) then racealias_aug;if (server_var(wcs_chance) >= server_var(wcs_dice)) then racealias_mp5navy"
"skill1_sfx" "0"

"skill2_setting" "es_xset random 0;es_xrand random 1 4"
"racealias_m4a11" "es est_SetClipAmmo event_var(userid) m4a1 500"
"racealias_ak471" "es est_SetClipAmmo event_var(userid) ak47 500"
"racealias_aug1" "es est_SetClipAmmo event_var(userid) aug 500"
"racealias_mp5navy1" "es est_SetClipAmmo event_var(userid) mp5navy 500"
"skill2_cmd" "if (server_var(wcs_chance) >= server_var(wcs_dice)) then racealias_m4a11;if (server_var(wcs_chance) >= server_var(wcs_dice)) then racealias_ak471;if (server_var(wcs_chance) >= server_var(wcs_dice)) then racealias_aug1;if (server_var(wcs_chance) >= server_var(wcs_dice)) then racealias_mp5navy1"
"skill2_sfx" "0"

"skill3_settings" "es_xsetinfo wcs_gravity .8;es_xsetinfo wcs_speed 1.3|es_xsetinfo wcs_gravity .74;es_xsetinfo wcs_speed 1.5|es_xsetinfo wcs_gravity .7;es_xsetinfo wcs_speed 1.7|es_xsetinfo wcs_gravity .67;es_xsetinfo wcs_speed 1.9|es_xsetinfo wcs_gravity .63;es_xsetinfo wcs_speed 2.1|es_xsetinfo wcs_gravity .52;es_xsetinfo wcs_speed 2.3|es_xsetinfo wcs_gravity .45;es_xsetinfo wcs_speed 2.5|es_xsetinfo wcs_gravity .40;es_xsetinfo wcs_speed 2.7"
"skill3_cmd" "es_delayed 2 est_SetGravity event_var(userid) server_var(wcs_gravity);es_delayed 2 est_Speed event_var(userid) server_var(wcs_speed)"
"skill3_sfx" "0"
}

so can some1 pllz help me
« Last Edit: July 26, 2010, 07:36:42 PM by -SJ. Mr.BrightSide »


Offline Scyther

  • Level 6 Experienced
  • *****
  • Posts: 121
  • <3 WCS :)
Re: help with skill setting/cmd
« Reply #1 on: July 27, 2010, 08:12:40 AM »
Two things, does allowed only <admins> work? =O
And when i wanted to spawn with he grenades on spawn it didnt work till i added a delay, i did .2 and then it made me spawn with them. Maybe you could tell us what actually isnt working first? (delay for the ammo should be longer then the one for the gun)
That might not work but its the first thing i thought of without reading through the whole script

Offline -çÇ- Mr.BrightSide

  • Level 5 Trained Intermediate
  • *****
  • Posts: 108
  • Country: 00
    • Controlled Chaos
Re: help with skill setting/cmd
« Reply #2 on: July 27, 2010, 08:44:23 AM »
yes <admins> will make it so only wcsadmin can use the the race but i have it on so i can test it

and i also wanna no if i made the skill1_settings and skill2_setting are wrong or is it skill1_cmd or skill2_cmd cuz the skill dont work
« Last Edit: July 27, 2010, 09:07:06 AM by -SJ. Mr.BrightSide »


Offline Ichigo

  • Level 6 Experienced
  • *****
  • Posts: 124
  • Country: us
Re: help with skill setting/cmd
« Reply #3 on: July 28, 2010, 05:51:02 AM »
I never really looked at a skill like this but i think this is an error in skill2_cmd
then racealias_mp5navy1"