Raised This Month: $ Target: $400
 0% 

[Help]Menu edit


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 11-15-2010 , 22:31   [Help]Menu edit
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (shop.sma - 523 views - 19.2 KB)

Last edited by EDUTz; 11-15-2010 at 23:21. Reason: attach sma.
EDUTz is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode