Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #include <hamsandwich>
- #include <fun>
- #define PLUGIN "100hp plugin"
- #define VERSION "1.0"
- #define AUTHOR "Alexandru"
- new bool: g_Map = false
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- RegisterHam(Ham_Spawn,"player","Spawn",1)
- new MapName[32]
- get_mapname(MapName,31)
- if(equali(MapName,"35hp"))
- g_Map = true
- }
- public Spawn(id) {
- if(g_Map)
- set_task(1.0,"task_100hp",id)
- }
- public task_100hp(id) {
- if(is_user_alive(id))
- set_user_health(id,100)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement