Raised This Month: $ Target: $400
 0% 

Solved spin my screen ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-29-2017 , 09:05   Re: spin my screen ?
Reply With Quote #1

PHP Code:

#include <amxmodx>
#include <hamsandwich>
#include <engine>

public plugin_init()
{
RegisterHam(Ham_TakeDamage"HamBurger_TakeDamage");
}

public 
HamBurger_TakeDamage(victim)
{
    new 
Float:ConfusedAngle[3];
    
    for(new 
i;3;i++ )
        
ConfusedAngle[i] = random_float(0.02000.0);
        
    
entity_set_vector(victimEV_VEC_punchangleConfusedAngle );

I suspect 2000 will be so powerful that in a knife fight the first player to stab the other will kill him so change it to be a random number from x.0 to y.0

Take note that Ham_TakeDamage has 5 parameters but I only need 1 at the moment. If you wish to get the attacker and damage, do this:

PHP Code:
public HamBurger_TakeDamage(victiminflictorattackerFloat:damage
eyal282 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 23:11.


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