Just bro use zp50_grenade_frost and zp50_class_nemesis include and change zp_get_user_frozen with zp_grenade_frost_get and same with zp_set_user_frozen with zp_grenade_frost_set and change only zp_get_user_nemesis with zp_class_nemesis_get
Last Edit: Nov 21, 2021 17:17:42 GMT by ShaunCraft15
ColorChat(player, NORMAL, "^x04[ZombiePlague]^x01 You not have amore frost ball!")
return PLUGIN_HANDLED
}
if (get_gametime() - g_last_use[player] < get_pcvar_float(cvar_cooldown))
{
ColorChat(player, NORMAL, "^x04[ZombiePlague]^x01 You have to wait %..f seconds to freeze again", get_pcvar_float(cvar_cooldown) - (get_gametime() - g_last_use[player]))
return PLUGIN_HANDLED
}
new target, body
if (get_user_aiming( player, target, body, get_pcvar_num(cvar_distance)))
// Replace LANG_PLAYER with player id for (arg_index = 2; arg_index < argscount; arg_index++) { if (getarg(arg_index) == LANG_PLAYER && arg_index + 1 < argscount) { // Check if next param string is a registered language translation static lang_key[64], arg_subindex arg_subindex = 0 while ((lang_key[arg_subindex] = getarg(arg_index + 1, arg_subindex++))) { /* keep looping */ } if (GetLangTransKey(lang_key) != TransKey_Bad) { setarg(arg_index, 0, player) changed_args[changedcount++] = arg_index arg_index++ // skip next argument since we know it's a translation key } } }
// Format message for player (+add ZP prefix) vformat(buffer, charsmax(buffer), message, 3) format(buffer, charsmax(buffer), "%s%s", "^x04[ZombiePlague]^x01", buffer)
// Send it message_begin(MSG_ONE_UNRELIABLE, msg_SayText, _, player) write_byte(player) write_string(buffer) message_end()
// Replace back player id's with LANG_PLAYER for (arg_index = 0; arg_index < changedcount; arg_index++) setarg(changed_args[arg_index], 0, LANG_PLAYER) } } // Send to specific target else { // Format message for player (+add ZP prefix) vformat(buffer, charsmax(buffer), message, 3) format(buffer, charsmax(buffer), "%s%s", "^x04[ZombiePlague]^x01", buffer)
// Replace LANG_PLAYER with player id for (arg_index = 2; arg_index < argscount; arg_index++) { if (getarg(arg_index) == LANG_PLAYER && arg_index + 1 < argscount) { // Check if next param string is a registered language translation static lang_key[64], arg_subindex arg_subindex = 0 while ((lang_key[arg_subindex] = getarg(arg_index + 1, arg_subindex++))) { /* keep looping */ } if (GetLangTransKey(lang_key) != TransKey_Bad) { setarg(arg_index, 0, player) changed_args[changedcount++] = arg_index arg_index++ // skip next argument since we know it's a translation key } } }
// Format message for player (+add ZP prefix) vformat(buffer, charsmax(buffer), message, 3) format(buffer, charsmax(buffer), "%s%s", "^x04[ZombiePlague]^x01", buffer)
// Send it message_begin(MSG_ONE_UNRELIABLE, msg_SayText, _, player) write_byte(player) write_string(buffer) message_end()
// Replace back player id's with LANG_PLAYER for (arg_index = 0; arg_index < changedcount; arg_index++) setarg(changed_args[arg_index], 0, LANG_PLAYER) } } // Send to specific target else { // Format message for player (+add ZP prefix) vformat(buffer, charsmax(buffer), message, 3) format(buffer, charsmax(buffer), "%s%s", "^x04[ZombiePlague]^x01", buffer)