Hi guys, i'm new on this forum (althoug i am a common guest for almost 2 years) and i have a little request if you might help me.
i have this plugin (attachment)
originaly it had 19 items to purchase, i did removed what i didn't need, but i have 2 little problems.
1) the menu it is like this:
1.item 1
2.item 2
...
7.item 7
8.back
9.next
0.exit
i tryed to remove some functions in shophandler but with no succes. when i removed the items i didn't need, i have only 9 .. so i don't realy need back si next. And i can't delete them from code.
2) in public give_respawn i did something like this
Code:
if (kills >= cost && !is_user_alive(id))
{
if(!(get_user_flags(id) & ADMIN_BAN))
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
cs_user_spawn(id)
cs_set_user_team(id, 1)
}
else if(cs_get_user_team(id) == CS_TEAM_CT)
{
cs_user_spawn(id)
cs_set_user_team(id, 2)
}
}
ColorChat(id, GREEN, "^x01[AMXX] ^x04%L", id, "GIVERESPAWN")
}
i don't want admins to can buy this item when they are dead because when they are dead, they won't respawn corectly (they can see both teams so they are actualy a sort of spectators)
sorry for my bad english, please help if you can.
Cheers
edit: sorry fysiks, i edited my post, hope this is better