Raised This Month: $51 Target: $400
 12% 

Hero: Lucky Luke


Post New Thread Reply   
 
Thread Tools Display Modes
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 06-15-2008 , 06:06   Re: Hero: Lucky Luke
Reply With Quote #21

PHP Code:
register_event("ResetHUD","newRound","b"
Hamsandwich ?
PHP Code:
get_cvar_num("luckyluke_getdeagle") == 
Pcvars ?
__________________
atomen is offline
Send a message via MSN to atomen
Xel0z
Senior Member
Join Date: Apr 2006
Location: Netherlands
Old 06-15-2008 , 07:38   Re: Hero: Lucky Luke
Reply With Quote #22

Ive been away for some time, so Im not sure what hamsandwich is..? I guess some new include?
__________________
Heroes: TESS-One Working on: Grit (Fixing bugs)

Last edited by Xel0z; 06-15-2008 at 09:49.
Xel0z is offline
Send a message via MSN to Xel0z
Dr. Jan Itor
Veteran Member
Join Date: Mar 2008
Location: there.
Old 06-15-2008 , 07:49   Re: Hero: Lucky Luke
Reply With Quote #23

Quote:
Originally Posted by Xel0z View Post
Ive been gone for some time, so Im not sure what hamsandwich is..? I guess some new include?
yep a new module with an include
__________________
Dr. Jan Itor is offline
Xel0z
Senior Member
Join Date: Apr 2006
Location: Netherlands
Old 06-15-2008 , 09:33   Re: Hero: Lucky Luke
Reply With Quote #24

rofl, I guess updating to AMXX 1.80 will do the trick xD.

@atomen
So I should use:
Code:
RegisterHam(Ham_Spawn, "player", "newRound", 1)
If not, plz tell me what to use, since I got to pick the whole thing up again.
__________________
Heroes: TESS-One Working on: Grit (Fixing bugs)

Last edited by Xel0z; 06-16-2008 at 07:03.
Xel0z is offline
Send a message via MSN to Xel0z
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 06-16-2008 , 13:14   Re: Hero: Lucky Luke
Reply With Quote #25

Yes, that usage is correct.
__________________
atomen is offline
Send a message via MSN to atomen
Z0qX
Junior Member
Join Date: Jun 2008
Old 06-20-2008 , 08:01   Re: Hero: Lucky Luke
Reply With Quote #26

Quote:
Originally Posted by atomen View Post
PHP Code:
get_cvar_num("luckyluke_getdeagle") == 
Pcvars ?
I thought pcvars just got used when getting the cvar multiple times?
__________________
Hero in progress: Diver [==========] [30%]
Spartans!
Z0qX is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 06-20-2008 , 12:06   Re: Hero: Lucky Luke
Reply With Quote #27

A amxmodx plugin has to be with pcvars.
And since it's more strict when It comes to SHs it should obvious to use it.

And the cvar is called multiple times.
Example of the new round event.

Though it's called more often than new round is
since he is registering it with "ResetHud"
Code:
public newRound(id) {
 if ( shModActive() && gHasLuckyLukePowers[id] && is_user_alive(id) && get_cvar_num("luckyluke_getdeagle") == 1) // This cvar is called multiple times
  {   shGiveWeapon(id,"weapon_deagle")     new clip, ammo, wpnid = get_user_weapon(id, clip, ammo)   if ( wpnid != CSW_DEAGLE && wpnid > 0 ) {    new wpn[32]    get_weaponname(wpnid, wpn, 31)    engclient_cmd(id, wpn)   }  } }
__________________

Last edited by atomen; 06-20-2008 at 12:14.
atomen is offline
Send a message via MSN to atomen
Z0qX
Junior Member
Join Date: Jun 2008
Old 06-21-2008 , 13:14   Re: Hero: Lucky Luke
Reply With Quote #28

Ah well, Im new here, so I guess you know it better than me :p
__________________
Hero in progress: Diver [==========] [30%]
Spartans!
Z0qX is offline
Aura
Member
Join Date: Jun 2008
Old 07-07-2008 , 17:51   Re: Hero: Lucky Luke
Reply With Quote #29

:0

If you get the 6 clip, keep the 7 clip uploaded... Some people may still like the 7 clip, although it wouldn't quite be a revolver.
Aura is offline
Xel0z
Senior Member
Join Date: Apr 2006
Location: Netherlands
Old 07-18-2008 , 10:57   Re: Hero: Lucky Luke
Reply With Quote #30

Im srry for the long delay. **Updated to version 1.1**. See main post for more.
Tested it, and it should work fine. If you find any bugs, plz report them here. Suggestions are always welcome.
__________________
Heroes: TESS-One Working on: Grit (Fixing bugs)

Last edited by Xel0z; 07-18-2008 at 13:39.
Xel0z is offline
Send a message via MSN to Xel0z
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 16:53.


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