This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Help with the blockmaker!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Asuxwew
New Member
Join Date: Feb 2015
Old 02-02-2015 , 05:49   Help with the blockmaker!
Reply With Quote #1

Hello guys, so I've had this blockmaker mode on my server for sometime now but I wanted to add a block, so it's called a VIP block and only VIP (with a certain flag) can access it (pass it).

I do have blocks that's called CT & T barriers and it's kinda the same idea which's only a certain team can pass his team block, below is the code of how it works:

PHP Code:
if (blockType == BM_BARRIER_CT && team == CS_TEAM_T)
else if (
blockType == BM_BARRIER_T && team == CS_TEAM_CT
I'd really appreciate the help.
Asuxwew is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 02-02-2015 , 17:31   Re: Help with the blockmaker!
Reply With Quote #2

you can use the same code, instead of team check do a VIP check
jimaway is offline
Asuxwew
New Member
Join Date: Feb 2015
Old 02-02-2015 , 20:20   Re: Help with the blockmaker!
Reply With Quote #3

Quote:
Originally Posted by jimaway View Post
you can use the same code, instead of team check do a VIP check
You don't understand, I'm not talking about a normal VIP, but a VIP with flag, a player with a certain flag that can pass the block.

Last edited by Asuxwew; 02-03-2015 at 01:08.
Asuxwew is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 02-03-2015 , 05:51   Re: Help with the blockmaker!
Reply With Quote #4

Quote:
Originally Posted by Asuxwew View Post
You don't understand, I'm not talking about a normal VIP, but a VIP with flag, a player with a certain flag that can pass the block.
it's actually you who don't understand. if you don't know how to copy-paste relevant code and change one line to check for users access, then you should post your source code to the suggestions/request section and ask for someone to do it for you

Last edited by jimaway; 02-03-2015 at 05:52.
jimaway is offline
Asuxwew
New Member
Join Date: Feb 2015
Old 02-03-2015 , 12:53   Re: Help with the blockmaker!
Reply With Quote #5

Quote:
Originally Posted by jimaway View Post
it's actually you who don't understand. if you don't know how to copy-paste relevant code and change one line to check for users access, then you should post your source code to the suggestions/request section and ask for someone to do it for you
I would if I actually didn't script that, thanks for your great advice though
Asuxwew is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-03-2015 , 16:33   Re: Help with the blockmaker!
Reply With Quote #6

What for you need the code?
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Asuxwew
New Member
Join Date: Feb 2015
Old 02-03-2015 , 18:43   Re: Help with the blockmaker!
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
What for you need the code?
I don't understand your question.
Asuxwew is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-04-2015 , 10:35   Re: Help with the blockmaker!
Reply With Quote #8

Quote:
Originally Posted by Asuxwew View Post
I don't understand your question.
Nvm i thought i know you.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 18:24.


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