EpicFail.
06-17-2010, 15:33
look i have a problem with respawn
it no read the Command "ExecuteHamB"
here my code
case 13: // Respawn
{
if(!is_user_alive(id)) {
client_print_color( 0, DontChange, "^4[ Shop] ^1You need to be alive!");
return PLUGIN_HANDLED;
}
if(userRespawn[id] > 0) {
client_print_color( 0, DontChange, "^4[ Shop] ^1You already own this item!");
return PLUGIN_HANDLED;
}
if(get_pcvar_num(allowRespawn) == 0) {
client_print_color( 0, DontChange, "^4[Shop] ^1This item is disabled.");
return PLUGIN_HANDLED;
}
new money = fm_get_user_money(id);
new cost = get_pcvar_num(Respawncost);
if(money > cost || money == cost) {
fm_get_user_money(id, money - cost);
ExecuteHamB(Ham_CS_RoundRespawn,id);
userRespawn[id]++;
client_print_color( 0, DontChange, "^4[Shop] ^1You purchased ^3Respawn.");
} else {
client_print_color( 0, DontChange, "^4[Shop] ^1You need more ^4money ^1to buy this!");
}
}
How i can fix this..
please some help
and sorry for my bad english
it no read the Command "ExecuteHamB"
here my code
case 13: // Respawn
{
if(!is_user_alive(id)) {
client_print_color( 0, DontChange, "^4[ Shop] ^1You need to be alive!");
return PLUGIN_HANDLED;
}
if(userRespawn[id] > 0) {
client_print_color( 0, DontChange, "^4[ Shop] ^1You already own this item!");
return PLUGIN_HANDLED;
}
if(get_pcvar_num(allowRespawn) == 0) {
client_print_color( 0, DontChange, "^4[Shop] ^1This item is disabled.");
return PLUGIN_HANDLED;
}
new money = fm_get_user_money(id);
new cost = get_pcvar_num(Respawncost);
if(money > cost || money == cost) {
fm_get_user_money(id, money - cost);
ExecuteHamB(Ham_CS_RoundRespawn,id);
userRespawn[id]++;
client_print_color( 0, DontChange, "^4[Shop] ^1You purchased ^3Respawn.");
} else {
client_print_color( 0, DontChange, "^4[Shop] ^1You need more ^4money ^1to buy this!");
}
}
How i can fix this..
please some help
and sorry for my bad english