Untitled
unknown
plain_text
a month ago
2.6 kB
4
Indexable
ActionExp(id, ent) { if(get_user_team(id) != 1) return PLUGIN_HANDLED; if(get_playersnum() < 0) { set_hudmessage(HudCol[0], HudCol[1], HudCol[2], 0.01, 0.18, 0, 0.0, 1.0, 0.25, 0.25, 4); show_hudmessage(id, "Kasa^nNa serwerze musi byc 4 graczy^nZapros znajomych!"); return PLUGIN_HANDLED; } new Float:gametime = get_gametime(); if(!(gametime >= g_next_exp_time[id])) return PLUGIN_HANDLED; g_next_exp_time[id] = gametime + 1.0; for(new i = 0; i < MAX_BLOCKS_WITH_EXP; i ++) { if(g_got_exp[id][i] == ent) { set_hudmessage(HudCol[0], HudCol[1], HudCol[2], 0.01, 0.18, 0, 0.0, 1.0, 0.25, 0.25, 4); show_hudmessage(id, "Kasa^nSkorzystales juz z tego bloczka, idz na inny!"); return PLUGIN_HANDLED; } if(g_got_exp[id][i] == 0 && !isVip[id]) { g_got_exp[id][i] = ent; new ile = GetPropertyNum(ent, INT_Prop1); hnsxp_set_user_xp(id, ile); hnsxp_get_user_xp(id); new vorigin[3]; get_user_origin(id, vorigin); message_begin(MSG_ALL, SVC_TEMPENTITY, vorigin); write_byte(TE_SPRITETRAIL); // TE ID write_coord(vorigin[0]); // x write_coord(vorigin[1]); // y write_coord(vorigin[2] +40); // z write_coord(vorigin[0]); // x write_coord(vorigin[1]); // y write_coord(vorigin[2]); // z write_short(sprite_money); // Sprite Index write_byte(40); // Count write_byte(20); // Life write_byte(5); // Scale write_byte(18); // Velocity Along Vector write_byte(4); // Rendomness of Velocity message_end(); BCM_Print(id, "Otrzymujesz ^4%d xp ^3i ^4%d$ ^3 za wbicie na kampe!", id, ile); emit_sound(id, CHAN_STATIC, g_sound_exp, 1.0, ATTN_NORM, 0, PITCH_NORM); return PLUGIN_HANDLED; } else if(g_got_exp[id][i] == 0 && isVip[id]) { g_got_exp[id][i] = ent; new ile = GetPropertyNum(ent, INT_Prop2); hnsxp_set_user_xp(id, ile); hnsxp_get_user_xp(id); new vorigin[3]; get_user_origin(id, vorigin); message_begin(MSG_ALL, SVC_TEMPENTITY, vorigin); write_byte(TE_SPRITETRAIL); // TE ID write_coord(vorigin[0]); // x write_coord(vorigin[1]); // y write_coord(vorigin[2] +40); // z write_coord(vorigin[0]); // x write_coord(vorigin[1]); // y write_coord(vorigin[2]); // z write_short(sprite_money); // Sprite Index write_byte(40); // Count write_byte(20); // Life write_byte(5); // Scale write_byte(18); // Velocity Along Vector write_byte(4); // Rendomness of Velocity message_end(); BCM_Print(id, "Otrzymujesz ^4%d xp ^3i ^4%d$ ^3 za wbicie na kampe!", id, ile); emit_sound(id, CHAN_STATIC, g_sound_exp, 1.0, ATTN_NORM, 0, PITCH_NORM); return PLUGIN_HANDLED; } } return PLUGIN_HANDLED; }
Editor is loading...
Leave a Comment