Raised This Month: $ Target: $400
 0% 

Correct or Not? I have do my best


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ilham92-cc-sakura
Senior Member
Join Date: Oct 2008
Location: /var/www/index.html
Old 02-22-2009 , 05:04   Re: Correct or Not? I have do my best
Reply With Quote #8

Both of them.. can't... disable or enable. also spwan...

why not return..
PHP Code:
    if (is_user_alive(victim))
    {
        
set_task(0.6,"respawnagain",victim);
        
client_print(0print_chat"[Grenade]: HE kill %s and respwan.",pl_name);
    }
    return 
PLUGIN_CONTINUE
PHP Code:
public spwn_cmd(id
{
    if( 
get_pcvar_num(amx_pcvar_0) == 
    {
    
client_print(idprint_chat"[Grenade]: Re-Spwan %s"get_pcvar_num(amx_pcvar_0) ? "Disabled." "Enabled.");
    }

replace "respawnagain" to "spwn_cmd"

i have try... not work

second... pcvar giving weapon...
PHP Code:
public plugin_init()
{
amx_pcvar_1 register_cvar("he_give_wpn""1");

PHP Code:
    if(get_pcvar_num(amx_pcvar_1) != && (get_user_team(victim) == 1)
        return 
PLUGIN_HANDLED;
    {
        
fm_give_item(victim"weapon_knife");
        
fm_give_item(victim"weapon_mp5navy");
        
fm_give_item(victim"item_kevlar");
        
fm_give_item(victim"ammo_9mm");
        
fm_give_item(victim"ammo_9mm");
        
fm_give_item(victim"ammo_9mm");
        
fm_give_item(victim"ammo_9mm");
    } 
Error:
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Expected token: ")", but found "return" on line 102

1 Error.
__________________

Last edited by ilham92-cc-sakura; 02-22-2009 at 05:28.
ilham92-cc-sakura is offline
 



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:57.


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