Hi, i've been making my own point plugin.
But i have 1 problem, you can buy extra hp as ct/t, but, when it is new round you dont get the health you bought :/.
Heres some code for you to see whats wrong :/
PHP Code:
public cmdNewRound() {
for (new i = 1; i <= gMaxPlayers; i++) {
if (is_user_alive(i)) {
new iHealth = get_user_health(i);
switch (cs_get_user_team(i)) {
case CS_TEAM_CT: set_user_health(i, iHealth + gPlayerCtHealth[i]);
case CS_TEAM_T: set_user_health(i, iHealth + gPlayerTHealth[i]);
}
}
}
}
First don't declare new varibles inside loop. And post some more code.