Xp mod problem
nvm fixed
another problem is with hns xp mod I set in the hns 2.8 of exolent the armor for both team to 0 and if player bought armor in the hns xp he doesnt got it aswell as for cts i tried to set the cvar to 1 but if i have like 200 armor from the xp mod i get like 1 it conflitcs with the hns 2.8 mod how do i solve it ? this is the armor method in xp mod: public FwdPlayerSpawn(client) { if( is_user_alive(client) ) { new CsTeams:team = cs_get_user_team(client); if( team == CS_TEAM_T || team == CS_TEAM_CT ) { if( g_first_time[client] ) { ColorChat(client, TEAM_COLOR, "%s ^3It is your first time playing this HideNSeek XP mod, so you are rewarded with %i XP!", g_szPrefix, ENTRY_XP); ColorChat(client, TEAM_COLOR, "%s ^3You earn XP based upon your gameplay, and you can buy more levels in the menu.", g_szPrefix); ColorChat(client, TEAM_COLOR, "%s ^3Type /xp to view what you can get!", g_szPrefix); g_first_time[client] = 0; } else { if( g_health_enabled[team] ) { new health = g_health_maxamount[team] * g_health_level[client][team] / g_health_maxlevels[team]; if( health > 0 ) { set_user_health(client, get_user_health(client) + health); } } if( g_armor_enabled[team] ) { new armorvalue = g_armor_maxamount[team] * g_armor_level[client][team] / g_armor_maxlevels[team]; if( armorvalue == 0 ) { cs_set_user_armor(client, armorvalue, CS_ARMOR_NONE); } else if( armorvalue < 100 ) { cs_set_user_armor(client, armorvalue, CS_ARMOR_KEVLAR); } else { cs_set_user_armor(client, armorvalue, CS_ARMOR_VESTHELM); } } } if( get_gametime() >= g_nade_give_time ) { GiveNades(client); } } } } |
| All times are GMT -4. The time now is 21:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.