AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Set Speed, No Footsteps, Set Gravity 4 Specialists, amxx 1.7 (https://forums.alliedmods.net/showthread.php?t=28148)

owenmelbz 05-08-2006 13:31

Set Speed, No Footsteps, Set Gravity 4 Specialists, amxx 1.7
 
hey im tryna set gravity, remove footsteps and set speed of the person that types /undead im not worried about the clcmd atm i just need to make sure this compiles. the current script i got is

Code:
public undead(id) {   if(!is_user_alive(id))     return PLUGIN_CONTINUE;     ts_set_speed(id, 300.0);     set_user_footsteps(id, 0);     set_user_gravity(id, 200);     return PLUGIN_CONTINUE; }

i try compile and i get

Code:

//AMXXPC compile.exe
// by the AMX Mod X Dev Team

//// undead.sma
// C:\scripting\undead.sma(5) : warning 217: loose indentation
// C:\scripting\undead.sma(5) : error 088: number of arguments does no
t match definition
// C:\scripting\undead.sma(7) : warning 213: tag mismatch
//
// 1 Error.
// Could not locate output file compiled\undead.amx (compile failed).
//
// Compilation Time: 2.61 sec
// ----------------------------------------

Press enter to exit ...

any ideas please ??

kuidao 05-08-2006 13:50

can you post full code???

owenmelbz 05-08-2006 13:58

ok ok i give in its not working.

can someone make it so

when you run the command amx_vamp it sets the person who typed it to

no footsteps
250 health
50% invis
300 gravity
speed 800

thanks

Des12 05-08-2006 19:28

Code:

/* Sets speed artificially. 1.0 is default, Go into fractions and decimals for slower
* and put in higher numbers for higher speeds. Aura is how far things around you are effected
* Time is the time until it wears off. 0.0 for speed will freeze people. Do not use negatives. */

native ts_set_speed(id,Float:speed,Float:auradist,Float:time)


Smokey485 05-08-2006 22:07

hey its melbz, if you want ill still offer you those plugins you been wanting, jsut contact my msn.

FatalisDK 05-08-2006 22:37

Code:
set_user_footsteps(id, 0); // Footsteps on set_user_footsteps(id, 1); // Footsteps off

Freecode 05-08-2006 23:44

users gravity isnt like the server gravity (0 - 1000) its from 0 - 1.0

owenmelbz 05-09-2006 02:43

lol cheers for all the help all i think i need now is it to run those commands on the person who types the command

@smokey lol sry you took a little too long we got StevenAF working on it now =/

hmm ok better idea :P all i got in paypal is $10 atm anyone who can make this for me and proove it works can have the $10

Jordan 05-10-2006 00:10

If you want 200 gravity it would be:

Code:
set_user_gravity(id, 0.25)

(.25 x 800 = 200 :))

owenmelbz 05-10-2006 13:40

kk can someon do this for me

register_srvcmd("item_vamp","item_vamp)

erm i need it to run like item_vamp <id>

(i allready got it so the command is run server side)

so when the command item_vamp is run it sets the user who ran it to

set_user_gravity(id, 0.25)
set_user_footsteps(id, 1)
ts_set_speed(id, 300.0)

can someone do this for me it would be a great help.

thanks


All times are GMT -4. The time now is 05:07.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.