Raised This Month: $ Target: $400
 0% 

Set Speed, No Footsteps, Set Gravity 4 Specialists, amxx 1.7


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
owenmelbz
Member
Join Date: Dec 2005
Old 05-08-2006 , 13:31   Set Speed, No Footsteps, Set Gravity 4 Specialists, amxx 1.7
Reply With Quote #1

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 ??
owenmelbz is offline
kuidao
Junior Member
Join Date: May 2006
Old 05-08-2006 , 13:50  
Reply With Quote #2

can you post full code???
kuidao is offline
Send a message via AIM to kuidao
owenmelbz
Member
Join Date: Dec 2005
Old 05-08-2006 , 13:58  
Reply With Quote #3

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
owenmelbz is offline
Des12
Senior Member
Join Date: Jan 2005
Old 05-08-2006 , 19:28  
Reply With Quote #4

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)
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 05-08-2006 , 22:07  
Reply With Quote #5

hey its melbz, if you want ill still offer you those plugins you been wanting, jsut contact my msn.
__________________
+karma if I am helpful to you.
I am one in a few million.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 05-08-2006 , 22:37  
Reply With Quote #6

Code:
set_user_footsteps(id, 0); // Footsteps on set_user_footsteps(id, 1); // Footsteps off
__________________
FatalisDK is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 05-08-2006 , 23:44  
Reply With Quote #7

users gravity isnt like the server gravity (0 - 1000) its from 0 - 1.0
Freecode is offline
owenmelbz
Member
Join Date: Dec 2005
Old 05-09-2006 , 02:43  
Reply With Quote #8

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 all i got in paypal is $10 atm anyone who can make this for me and proove it works can have the $10
owenmelbz is offline
Jordan
Veteran Member
Join Date: Aug 2005
Old 05-10-2006 , 00:10  
Reply With Quote #9

If you want 200 gravity it would be:

Code:
set_user_gravity(id, 0.25)

(.25 x 800 = 200 )
Jordan is offline
owenmelbz
Member
Join Date: Dec 2005
Old 05-10-2006 , 13:40  
Reply With Quote #10

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
owenmelbz is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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