Raised This Month: $ Target: $400
 0% 

I have a question about speeds.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ƒa†es™
Senior Member
Join Date: May 2009
Location: Garena
Old 07-28-2009 , 08:29   I have a question about speeds.
Reply With Quote #1

Is it possible to set speed on zombie plague ?

because i try to use this but didn't work.

PHP Code:
set_user_maxspeedid470 
Is there anyway i can set speed in zombie plague ??
__________________

Last edited by ƒa†es™; 07-29-2009 at 09:58.
ƒa†es™ is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-28-2009 , 08:31   Re: I have a question.
Reply With Quote #2

Zombie's speed is defined when you register the zombie with zp_register_zombie_class().
__________________
Arkshine is offline
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 07-28-2009 , 11:44   Re: I have a question.
Reply With Quote #3

But you mean constant speed , or non-constant ??
Maybe there's another way if u want to set speed non-constant.
Look at this plugins .
5c0r-|3i0 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-28-2009 , 11:54   Re: I have a question.
Reply With Quote #4

Code:
set_user_maxspeed(id, 470.0);
__________________
hleV is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 07-28-2009 , 12:34   Re: I have a question.
Reply With Quote #5

Don't make stupid topic titles.
Jon is offline
ƒa†es™
Senior Member
Join Date: May 2009
Location: Garena
Old 07-29-2009 , 09:59   Re: I have a question about speeds.
Reply With Quote #6

Quote:
Originally Posted by 5c0r-|3i0 View Post
But you mean constant speed , or non-constant ??
Maybe there's another way if u want to set speed non-constant.
Look at this plugins .
I trying to add speed in extra item.


Quote:
Originally Posted by hleV View Post
Code:
set_user_maxspeed(id, 470.0);
Didn't work. as like default
__________________
ƒa†es™ is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 07-29-2009 , 10:19   Re: I have a question about speeds.
Reply With Quote #7

You probably have too hook the CurWeapon event, but I am not sure since I don't know how ZP works.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 07-29-2009 , 10:39   Re: I have a question about speeds.
Reply With Quote #8

Quote:
Originally Posted by Xellath View Post
You probably have too hook the CurWeapon event, but I am not sure since I don't know how ZP works.
Zombie plague sets speed every frame, in prethink if I remember right.
SnoW is offline
Send a message via MSN to SnoW
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 07-29-2009 , 11:17   Re: I have a question about speeds.
Reply With Quote #9

@ƒa†es™:
First ,make a new bool ( or not):
PHP Code:
new g_speed[33
Then use the zp_extra_item_selected forward to g_speed[id] came true
PHP Code:
public zp_extra_item_selected(player,itemid...)
if(
bla bla bla)
 
g_speed[player] = true (or ??) 
Then use Fakemeta forward...fm_playerprethink [ I don't remember]...To hook if user has already buy speed .
Then
set_user_maxspeed
Like the plugin in attachment ..But you really don't understand my idea.....
If anything wrong , please tell me

You should see some extra item about speed thing to see what others people did....
btw,do you know about scripting ??
5c0r-|3i0 is offline
ƒa†es™
Senior Member
Join Date: May 2009
Location: Garena
Old 07-29-2009 , 11:31   Re: I have a question about speeds.
Reply With Quote #10

Quote:
Originally Posted by 5c0r-|3i0 View Post
@ƒa†es™:
First ,make a new bool ( or not):
PHP Code:
new g_speed[33
Then use the zp_extra_item_selected forward to g_speed[id] came true
PHP Code:
public zp_extra_item_selected(player,itemid...)
if(
bla bla bla)
 
g_speed[player] = true (or ??) 
Then use Fakemeta forward...fm_playerprethink [ I don't remember]...To hook if user has already buy speed .
Then
set_user_maxspeed
Like the plugin in attachment ..But you really don't understand my idea.....
If anything wrong , please tell me

You should see some extra item about speed thing to see what others people did....
btw,do you know about scripting ??

I don't get it with the hook,

How do i hook ??

Can you show me example codes.
__________________
ƒa†es™ is offline
Reply



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 18:20.


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