|
Author
|
Message
|
|
Senior Member
|

12-10-2011
, 18:09
Re: Search for plug,, awp & knife,, only
|
#1
|
EnJOy
PHP Code:
#include <amxmodx> #include <engine>
#define VERSION "0.0.1"
public plugin_init() { register_plugin("Spawn With Awp", VERSION, "ConnorMcLeod") }
public plugin_precache() { new iEnt iEnt = create_entity("game_player_equip") DispatchKeyValue(iEnt, "weapon_knife", "1") DispatchKeyValue(iEnt, "weapon_awp", "0") DispatchKeyValue(iEnt, "338magnum", "3") DispatchSpawn(iEnt)
iEnt = create_entity("info_map_parameters") DispatchKeyValue(iEnt, "buying", "3") DispatchSpawn(iEnt) }
public pfn_keyvalue( iEnt ) { new szClassName[32], szKeyName[32], szValue[32] copy_keyvalue(szClassName, charsmax(szClassName), szKeyName, charsmax(szKeyName), szValue, charsmax(szValue)) if( equal(szClassName, "game_player_equip") || equal(szClassName, "info_map_parameters") ) { remove_entity(iEnt) return PLUGIN_HANDLED } return PLUGIN_CONTINUE }
public plugin_cfg() { set_cvar_float("sv_restart", 1.0) }
__________________
For our new family member's in alliedmods
Quote:
Originally Posted by bo0m
Ok, there are a couple ways to find this, here are about 5:
1. Search
2. Search again
3. If you don't find it, then search again.
4. After searching the 3rd time, search again
5. Then when you are tired of searching, just search some more!!!!
|
|
|
|
|