Raised This Month: $ Target: $400
 0% 

Buildmode Help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rainin
Member
Join Date: Apr 2011
Location: Estonia
Old 10-25-2011 , 14:33   Buildmode Help.
Reply With Quote #1

Got it working. Thnx Evaldas

Last edited by rainin; 10-25-2011 at 15:46.
rainin is offline
Send a message via MSN to rainin
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-25-2011 , 14:45   Re: Buildmode Help.
Reply With Quote #2

Why you use g_buildmode[i] = false... and then g_buildmode[id] = true?
__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
rainin
Member
Join Date: Apr 2011
Location: Estonia
Old 10-25-2011 , 14:49   Re: Buildmode Help.
Reply With Quote #3

Quote:
Originally Posted by Evaldas.Grigas View Post
Why you use g_buildmode[i] = false... and then g_buildmode[id] = true?
Oh sry, Didn't saw it there. But is that the problem?

Last edited by rainin; 10-25-2011 at 14:49.
rainin is offline
Send a message via MSN to rainin
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-25-2011 , 14:54   Re: Buildmode Help.
Reply With Quote #4

I don't know. I don't have whole code to check it. But it could be the problem.

BTW. What's the problem it doesn't give it at all or it gives it to all playes?
__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067

Last edited by Evaldas.Grigas; 10-25-2011 at 14:58.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
rainin
Member
Join Date: Apr 2011
Location: Estonia
Old 10-25-2011 , 15:01   Re: Buildmode Help.
Reply With Quote #5

The problem was that it only gave buildmode, who wrote /buildmode And thnxs that was the problem -.- But Now i Have another problem.

Code:
public showBuildmode(id)
{
	new col[3];
	new szMenu[256];
	new szBuildmode[6];
	col = (get_user_flags(id) & BM_OMANIK ? "\w" : "\d");
	for (new i = 1; i <= 32; ++i)
	{
	szBuildmode = (g_buildmode[i] ? "\yOn" : "\rOff");
	}
	
	if(get_user_flags(id) & BM_OMANIK) {
	//format the main menu
	format(szMenu, 256, gszBuildmode, col, szBuildmode);
	
	//show the main menu to the player
	show_menu(id, gKeysBuildmode, szMenu, -1, "bmBuildmode");
} 	
	else
{
	client_printc(id, "^x03%s^x04 Buildmode^x01 Can Be^x04 Enabled^x01 Only By ^x04Owner!", gszPrefix);
}
	return PLUGIN_HANDLED;
}
How can i do so it would show me if the buildmode is on or off

Last edited by rainin; 10-25-2011 at 15:03.
rainin is offline
Send a message via MSN to rainin
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-25-2011 , 15:04   Re: Buildmode Help.
Reply With Quote #6

Well... Try this:
PHP Code:
if(g_buildmode == fasle)
{
client_print(idprint_center"Buildmode is off")
}
if(
g_buildmode == true)
client_print(idprint_center"Buildmode is on"
P.S. Were it should show you? Like a hud message? Or ptiny in the center or chat?
__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067

Last edited by Evaldas.Grigas; 10-25-2011 at 15:07.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
rainin
Member
Join Date: Apr 2011
Location: Estonia
Old 10-25-2011 , 15:07   Re: Buildmode Help.
Reply With Quote #7

Quote:
Originally Posted by Evaldas.Grigas View Post
Well... Try this:
PHP Code:
if(g_buildmode == fasle)
{
client_print(idprint_center"Buildmode is off")
}
if(
g_buildmode == true)
client_print(idprint_center"Buildmode is on"
I dont mean like that...

Code:
{
	szBuildmode = (g_buildmode[i] ? "\yOn" : "\rOff");
	}
So it would show like this.
rainin is offline
Send a message via MSN to rainin
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-25-2011 , 15:09   Re: Buildmode Help.
Reply With Quote #8

I don't know . I am not very experienced
__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
rainin
Member
Join Date: Apr 2011
Location: Estonia
Old 10-25-2011 , 15:09   Re: Buildmode Help.
Reply With Quote #9

Quote:
Originally Posted by Evaldas.Grigas View Post
I don't know . I am not very experienced
Okey. Can someone help me with this little thing?
rainin is offline
Send a message via MSN to rainin
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-25-2011 , 16:25   Re: Buildmode Help.
Reply With Quote #10

Code:
formatex( szBuildmode, charsmax( szBuildmode ), ( g_buildmode[ id ] ? "\yOn" : "\rOff" ) );
__________________
Achievements API - a simple way for you to create your OWN custom achievements!

Last edited by Xellath; 10-26-2011 at 01:03.
Xellath is offline
Reply



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 14:17.


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