RSSy MYGO.pl Opublikowano Kwiecień 6, 2020 o 03:48 RSSy Udostępnij Opublikowano Kwiecień 6, 2020 o 03:48 Hello Guys.. I Made VIP Privilages plugin for give vips [ health and 3 bombs] But i want to add vipspeed and make this plugins for CT only PHP Code: VipSpeed = register_cvar("vs_vip_speed", "400"); Default Plugin: PHP Code: #include <amxmodx>#include <fun>#include <colorchat>#include < hamsandwich >#include <cstrike>#include <engine>#include <fakemeta>#include <fakemeta_util>#define VIP-ACC ADMIN_LEVEL_Hnew VIPhealth; public plugin_init() { register_plugin( "VIP Privilage", "1.0", "(K![L]leR-ND)" ) RegisterHam(Ham_Spawn, "player", "Privilage", 1) VIPhealth = register_cvar("health_VIP", "150") }public Privilage(id){ if( get_user_flags( id ) & VIP-ACC ) { ColorChat(id, GREEN, "^1[ ^4GameOver ^1] ^3You got^1 150HP ^3-^1 Full nade Pack") } set_user_health(id, get_pcvar_num(VIPhealth)) give_item(id, "weapon_hegrenade") give_item(id, "weapon_flashbang") give_item(id, "weapon_flashbang") give_item(id, "weapon_smokegrenade") } I made this but it didn't worked , Please helP ... and how to make this for ct only PHP Code: #include <amxmodx>#include <fun>#include <colorchat>#include < hamsandwich >#include <cstrike>#include <engine>#include <fakemeta>#include <fakemeta_util>#define VIP-ACC ADMIN_LEVEL_Hnew VIPhealth,VIPspeed; public plugin_init() { register_plugin( "VIP Privilage", "1.0", "MrAbdoO"); RegisterHam(Ham_Spawn, "player", "Privilage", 1) VIPhealth = register_cvar("health_VIP", "150") VipSpeed = register_cvar("speed_VIP", "400")}public Privilage(id){ if( get_user_flags( id ) & VIP-ACC ) { ColorChat(id, GREEN, "^1[ ^4GameOver ^1] ^3You got^1 150HP ^3-^1 Full nade Pack") } set_user_health(id, get_pcvar_num(VIPhealth)) set_user_maxspeed(id, get_pcvar_float(VipSpeed)); give_item(id, "weapon_hegrenade") give_item(id, "weapon_flashbang") give_item(id, "weapon_flashbang") give_item(id, "weapon_smokegrenade") } Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi