May 26, 2019, 08:16:13 AM

Author Topic: wcs drug  (Read 1078 times)

Offline Jhonam

  • Level 7 Expert
  • *****
  • Posts: 1157
  • Country: ru
wcs drug
« on: December 26, 2010, 11:06:54 PM »
Code: [Select]
[[skill2]]
setting  = "es_xset wcs_time 1|es_xset wcs_time 2|es_xset wcs_time 3|es_xset wcs_time 4"
cmd      = "if (server_var(wcs_dice) <= 30) then wcs_xalias racealias_bme2"
   racealias_bme2  = "es wcs drug event_var(userid) server_var(wcs_time);es_playsound server_var(wcs_userid) ambient/explosions/explode_7.wav 0.9;es wcs_xtell event_var(userid) r_banish attacker event_var(es_attackername) victim event_var(es_username) time server_var(wcs_time);es wcs_xtell event_var(attacker) r_banish attacker event_var(es_attackername) victim event_var(es_username) time server_var(wcs_time)"
sfx      = "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 15;es est_effect 11 #a 0 sprites/xfireball3.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 4 2 255"


Not working, write message in console:

Code: [Select]
commands: Error: Syntax: wcs drug <userid> <[time]>

What is my mistake and how to fix it?
I - Russian, and that says it all...