1 yapsamda işlev goruyor 0 yapsamda- - - - - - - - - -PHP- Kodu:
#include <amxmodx>#include <fun>#include <hamsandwich>#include <cstrike>
new cvar;
public plugin_init() { register_plugin( "Wheres my hegrenade?!", "-1.0", "xPaw" ); RegisterHam( Ham_Spawn, "player", "fwdHamSpawnPlayer", 1 ); cvar = register_cvar( "amx_bomba", "1" );}
public fwdHamSpawnPlayer( id ){ if( get_pcvar_num( cvar ) == 1 ) { give_item( id, "weapon_hegrenade" ); give_item( id, "item_kevlar" ); give_item( id, "item_nvgs" ); }}
Üsttekinde karışmış,
Kod:#include <amxmodx> #include <fun> #include <hamsandwich> #include <cstrike> new cvar; public plugin_init() { register_plugin( "Wheres my hegrenade?!", "-1.0", "xPaw" ); RegisterHam( Ham_Spawn, "player", "fwdHamSpawnPlayer", 1 ); cvar = register_cvar( "amx_bomba", "1" ); } public fwdHamSpawnPlayer( id ) { if( get_pcvar_num( cvar ) == 1 ) { give_item( id, "weapon_hegrenade" ); give_item( id, "item_kevlar" ); give_item( id, "item_nvgs" ); } }
- - - - - - - - - -
1 yapsamda işlev goruyor 0 yapsamda- - - - - - - - - -PHP- Kodu:
#include <amxmodx>#include <fun>#include <hamsandwich>#include <cstrike>
new cvar;
public plugin_init() { register_plugin( "Wheres my hegrenade?!", "-1.0", "xPaw" ); RegisterHam( Ham_Spawn, "player", "fwdHamSpawnPlayer", 1 ); cvar = register_cvar( "amx_bomba", "1" );}
public fwdHamSpawnPlayer( id ){ if( get_pcvar_num( cvar ) == 1 ) { give_item( id, "weapon_hegrenade" ); give_item( id, "item_kevlar" ); give_item( id, "item_nvgs" ); }}
Üsttekinde karışmış,
Kod:#include <amxmodx> #include <fun> #include <hamsandwich> #include <cstrike> new cvar; public plugin_init() { register_plugin( "Wheres my hegrenade?!", "-1.0", "xPaw" ); RegisterHam( Ham_Spawn, "player", "fwdHamSpawnPlayer", 1 ); cvar = register_cvar( "amx_bomba", "1" ); } public fwdHamSpawnPlayer( id ) { if( get_pcvar_num( cvar ) == 1 ) { give_item( id, "weapon_hegrenade" ); give_item( id, "item_kevlar" ); give_item( id, "item_nvgs" ); } }