//
// * *
// | | * *| |
// | | * * | |
// | | * * | |
// | | * | |
// | | | |- - - -uzzaik
// | | | |
// | | | |
// | | | |
// | | | |
// | | | |
// | | | |
#include <amxmodx>
#include <fun>
#include <cstrike>
new bool:eromegveve [ 33 ]
public plugin_init ( ) {
register_plugin("Erok", "1.0", "muzzaik")
register_clcmd("say /ero", "Ero")
register_clcmd("say /sorsolas", "Fegyver")
}
public Ero ( id ) {
if ( !is_user_alive ( id ) ) {
client_print (id, print_chat, "Halottak nem jatszhatnak!" )
} else if ( cs_get_user_money ( id ) < 4725 ) {
client_print ( id, print_chat, "Nincs ra eleg penzed! (7672$!)" )
} else if ( eromegveve [ id ] == true ) {
client_print ( id, print_chat, "Mar van Szupererod" )
} else {
client_print ( id, print_chat, "Sikeresen Vettel Szupererot ird be a saybe hogy /sorsolas es adja a kisorsolt Szupererot!" )
eromegveve [ id ] = true
cs_set_user_money ( id, cs_get_user_money ( id ) - 7672, 1 )
}
}
public Fegyver ( id ) {
if ( !is_user_alive ( id ) ) {
client_print (id, print_chat, "Halottak nem jatszhatnak!" )
} else if ( eromegveve [ id ] == false ) {
client_print ( id, print_chat, "Nincs is Erod!" )
} else {
new veletlen = random_num ( 0, 4 )
switch ( veletlen ) {
case 0: {
client_print ( id, print_chat, "Szerencsed van! Nyertel Spenter Erot!" )
give_item ( id, "weapon_awp" )
give_item ( id, "ammo_338magnum" )
give_item ( id, "weapon_deagle" )
give_item ( id, "ammo_50ae" )
give_item ( id, "ammo_50ae" )
give_item ( id, "ammo_50ae" )
give_item ( id, "ammo_50ae" )
set_user_maxspeed ( id, 330.0 )
set_user_gravity ( id, 0.7 )
set_user_health ( id, 125 )
set_user_armor ( id, 700 )
eromegveve [ id ] = false
}
case 1: {
client_print ( id, print_chat, "Szerencsed van! Nyertel Qustmet Erot!" )
cs_set_user_money ( id, cs_get_user_money ( id ) + 20000, 1 )
give_item(id,"weapon_m3")
give_item(id,"ammo_buckshot")
give_item(id,"ammo_buckshot")
give_item(id,"ammo_buckshot")
give_item(id,"ammo_buckshot")
give_item(id,"weapon_fiveseven")
give_item(id,"ammo_57mm")
give_item(id,"ammo_57mm")
give_item(id,"ammo_57mm")
give_item(id,"ammo_57mm")
set_user_maxspeed ( id, 700.0 )
set_user_gravity ( id, 1.5 )
eromegveve [ id ] = false
}
case 2: {
client_print ( id, print_chat, "Szerencsed van! Nyertel Totsequst Erot!" )
set_user_health ( id, 500 )
give_item(id,"weapon_glock18")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
set_user_maxspeed ( id, 200.0 )
set_user_gravity ( id, 0.5 )
eromegveve [ id ] = false
}
case 3: {
client_print ( id, print_chat, "Szerencsed van! Nyertel Muntel erot!" )
set_user_maxspeed ( id, 400.0 )
set_user_gravity ( id, 1.0 )
set_user_footsteps ( id, 0 )
set_user_health ( id, 100 )
set_user_armor ( id, 100 )
give_item ( id, "weapon_m4a1" )
give_item ( id, "ammo_556nato" )
eromegveve [ id ] = false
}
case 4: {
client_print ( id, print_chat, "Szerencsed van! Nyertel Pometyir erot!" )
cs_set_user_money ( id, cs_get_user_money ( id ) + 50000, 1 )
set_user_noclip ( id, 1 )
give_item ( id, "weapon_deagle" )
give_item ( id, "ammo_50ae" )
give_item ( id, "ammo_50ae" )
give_item ( id, "ammo_50ae" )
give_item ( id, "ammo_50ae" )
set_user_health ( id, 50 )
eromegveve [ id ] = false
}
}
}
}