Raised This Month: $32 Target: $400
 8% 

help please. :)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
mix97mix
Member
Join Date: Sep 2011
Old 10-07-2011 , 08:14   help please. :)
#1

Using this.

if(PlayerClassCT[id] == 2)
{
set_user_health(id, 1500)
give_item(id, "weapon_knife")
cs_set_user_model(id, "av_dragon")
set_user_gravity(id, 0.80)
set_user_rendering(id)
}

What should i do so player can do this

#include <amxmodx>
#include <engine>


#define PLUGIN "Fly"
#define VERSION "1.0"
#define AUTHOR "Stereo"


public plugin_init()
register_plugin(PLUGIN, VERSION, AUTHOR)

public client_PreThink(id)
{
if( is_user_alive(id) )
{
new Float:fAim[3] , Float:fVelocity[3];
VelocityByAim(id , 250 , fAim);

if(!(get_user_button(id) & IN_JUMP))
{
fVelocity[0] = fAim[0];
fVelocity[1] = fAim[1];
fVelocity[2] = fAim[2];

set_user_velocity(id , fVelocity);
}
}
return PLUGIN_CONTINUE;
}

Anywone?
mix97mix is offline
Send a message via MSN to mix97mix Send a message via Skype™ to mix97mix
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 10-08-2011 , 06:57   Re: help please. :)
#2

PHP Code:
#include <amxmodx>
#include <engine>


#define PLUGIN "Fly"
#define VERSION "1.0"
#define AUTHOR "Stereo"


public plugin_init()
register_plugin(PLUGINVERSIONAUTHOR)

public 
client_PreThink(id)
{
if( 
is_user_alive(id) )
{
new 
Float:fAim[3] , Float:fVelocity[3];
VelocityByAim(id 250 fAim);

if((
get_user_button(id) & IN_JUMP) && PlayerClassCT[id] == 2)
{
fVelocity[0] = fAim[0];
fVelocity[1] = fAim[1];
fVelocity[2] = fAim[2];

set_user_velocity(id fVelocity);
}
}
return 
PLUGIN_CONTINUE;

?
__________________

anakin_cstrike is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-11-2011 , 08:23   Re: help please. :)
#3

http://forums.alliedmods.net/showthread.php?t=169000
http://forums.alliedmods.net/showthread.php?t=169340
http://forums.alliedmods.net/showthread.php?t=169339

Read the rules.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Closed Thread



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 07:48.


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