AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Kinda egh at Scripting HELP!!! (https://forums.alliedmods.net/showthread.php?t=101662)

31m0_owns 08-25-2009 22:48

Kinda egh at Scripting HELP!!!
 
I am trying to make a mini plugin to silence usp It compiles fine and everything. Am i missing a statement/values/anythin


PHP Code:

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
}

public 
Task_GiveItems(id)
{
    
    if (!
is_user_alive(id))
        return;
    
    
strip_user_weapons(id)
    
    
give_item(id"weapon_usp")
    
    
ExecuteHamB(Ham_GiveAmmoid100"45acp"100)
    
    
cs_set_weapon_silen(id)
    



fysiks 08-26-2009 00:02

Re: Kinda egh at Scripting HELP!!!
 
- No include files.
- PLUGIN, VERSION, AUTHOR are not defined.
- Task_GiveItems() is never called.

(I don't know much about the CS specific code there.)

I know it's not much advice but it's a start :).

Exolent[jNr] 08-26-2009 00:09

Re: Kinda egh at Scripting HELP!!!
 
cs_set_weapon_silen( ) uses the weapon entity index, not the player index.

cs_[g|s]et_weapon_* = weapon entity
cs_[g|s]et_user_* = player


All times are GMT -4. The time now is 15:06.

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