Raised This Month: $ Target: $400
 0% 

set_pev ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 06-20-2007 , 04:28   Re: set_pev ?
Reply With Quote #8

Code:
set_task(4.0,"normal_grav")

you dont give the client id to set_task, so you wont get it in normal_grav when you call it.

Code:
new CORE[1]; CORE[0] = id; set_task(4.0,"normal_grav",_, CORE, 1 );

and then you have to read the id in the normal_grav function
Code:
public normal_grav(CORE[]) {      new id = CORE[0];      set_pev(id,pev_gravity,800);      client_cmd(id, "-jump"); }
__________________
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
 



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 21:32.


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