View Single Post
Author Message
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 06-20-2008 , 12:06   Re: Hero: Lucky Luke
Reply With Quote #1

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