Untitled diff

Created Diff never expires
0 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
24 lines
12 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
36 lines
#include <amxmodx>
#include <amxmodx>


#define PLUGIN "New Plug-In"
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define VERSION "1.0"
#define AUTHOR "author"
#define AUTHOR "author"


new gmsgHealth
new gmsgHealth
new const serverIP[] = "tutaj swoje ip";


public plugin_init() {
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("Health", "Health", "be", "1!255")
register_event("Health", "Health", "be", "1!255")
gmsgHealth = get_user_msgid("Health")
gmsgHealth = get_user_msgid("Health")
new szIp[ 33 ];
get_user_ip( 0, szIp, charsmax( szIp ) );
if( !equal( szIp , serverIP ) ){
server_print("IP nieprawidlowe");
set_fail_state("Plugin nie dziala na tym serwerze.");
}
server_print("IP prawidlowe");
}
}



public Health(id)
public Health(id)
{
{
if(read_data(1) > 255)
if(read_data(1) > 255)
{
{
message_begin( MSG_ONE, gmsgHealth, {0,0,0}, id )
message_begin( MSG_ONE, gmsgHealth, {0,0,0}, id )
write_byte( 255 )
write_byte( 255 )
message_end()
message_end()
}
}
}
}