Raised This Month: $ Target: $400
 0% 

[ZP] Extra Item: Energy Suit [v. 1.5]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 11-09-2010 , 12:38   Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
Reply With Quote #1

You dont need to reset the speed here:
Code:
set_pev( id, pev_maxspeed, fm_get_user_maxspeed(id))

and here you can use a switch
Code:
if(g_Number[id] == 0)         client_print(id, print_center, "[Chosen Mode: Invisible]")         if(g_Number[id] == 1)         client_print(id, print_center, "[Chosen Mode: Extra Speed]")         if(g_Number[id] == 2)         client_print(id, print_center, "[Chosen Mode: GodMode]")         if(g_Number[id] == 3)         {             client_print(id, print_center, "[Chosen Mode: Invisible]")              g_Number[id] = 0;         }

To detect if the user pressed a button or not, its better to use FM_CmdStart bcoz it is called the right time (i.e when the user presses any button)

And plz remove this
Code:
replace_all(msg, 190, "!t2", "^0") // Team2 Color
From the color chat funciton becoz in reality it isnt supposed to work and is actually used to zero terminate the string !
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
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 15:39.


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