Raised This Month: $ Target: $400
 0% 

No errors or warnings, yet it doesnt work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-16-2010 , 07:00   Re: No errors or warnings, yet it doesnt work
Reply With Quote #1

PHP Code:
public HE_was_thrown() {
    if (
NadeSpawnOn == 1) {
        if (
GetNadeType() == 1) {
            
set_task(get_pcvar_float(cvar_time), "SpawnHE")
        }
    }
    else {
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED

You have to pass the id of the player in that function and the other 2 PrimaryAttack so you know who you should give the nade to.
PHP Code:
public HE_was_thrown(id) {
    if (
NadeSpawnOn == 1) {
        if (
GetNadeType() == 1) {
            
set_task(get_pcvar_float(cvar_time), "SpawnHE"id)
        }
    }
    else {
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 14:47.


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