Raised This Month: $ Target: $400
 0% 

Help for script..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AnimalMonster
Senior Member
Join Date: May 2020
Old 06-26-2020 , 09:10   Re: Help for script..
Reply With Quote #1

Aleku. they said wronger than you , you did good but did you define that value?
PHP Code:
#define VIP_LEVEL_ACCES ADMIN_.... 
If you did then idk, you can make in other way like in the handle
and if you didn't ,do it and your code will be working
PHP Code:
case x: if(get_user_flags(id) & VIP_LEVEL_ACCESS)
{
        
giveitem(id)
}
else 
client_print(id,print_chat,"Not Vip Member"
and btw for everyone is the next message
Every if(get_user_flags(id) & x) has to do a else after you wrote the code because then the code will let anyone use it bcs it's like without else it's creating a invisible one that does the same thing, i found out this thing when i was doing my menu. and btw you could also do like this
PHP Code:
if(get_user_flags(id) & VIP_LEVEL_ACCESS)
{
menu_additem(Menu,"lala","key")
}
else 
menu_additem(Menu,"\dlala",""
as you seen in the third param i didn't put anything else than "" so the item would do nothing and that /d will make the item look like it can't be accesed.

Last edited by AnimalMonster; 06-26-2020 at 09:12.
AnimalMonster is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-26-2020 , 09:27   Re: Help for script..
Reply With Quote #2

Quote:
Originally Posted by AnimalMonster View Post
Every if(get_user_flags(id) & x) has to do a else after you wrote the code because then the code will let anyone use it bcs it's like without else it's creating a invisible one that does the same thing, i found out this thing when i was doing my menu.
This is the funniest thing I heard, I know that you are new in coding, and that you want to show yourself, but veterans in here have more than 5 years of coding experience, so you can't teach them, what you said is not true, it will just skip that action for player who doesn't have required flags. In this case it just won't show that 2 menu items.
__________________
Contact! || Discord:
Mr_Boopsy_#2066

Last edited by supertrio17; 06-26-2020 at 09:28.
supertrio17 is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 06-26-2020 , 09:34   Re: Help for script..
Reply With Quote #3

Quote:
Originally Posted by supertrio17 View Post
This is the funniest thing I heard, I know that you are new in coding, and that you want to show yourself, but veterans in here have more than 5 years of coding experience, so you can't teach them, what you said is not true, it will just skip that action for player who doesn't have required flags. In this case it just won't show that 2 menu items.
man, i made a menu in the new one and it showed the items but they couldn't be accesed and showed the name as can't be accesed when i made my first menu, and please, even if i'm new (3-4 weeks) i already make my own plugin and try use the message.inc natives or stock , what were them ,and the things i said is true bcs at me worked like that if you say that is not true let me go and try make a menu, put on my server that needa addons that i will make and we'll see about that, there are a lot of methods and btw the callbacks can be did in handle directly too and very simple. also im 14 years old.
SOON POSTING A NEW PLUGIN FOR ZP THAT WILL ADD XP AND AT THE SAME TIME MAKE A BUYMENU ON LEVELS

Last edited by AnimalMonster; 06-26-2020 at 09:36.
AnimalMonster is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-26-2020 , 09:40   Re: Help for script..
Reply With Quote #4

That's not good enough explanation, it worked for you that way, do a little bit more research. You can't just go and deny everything they were learning for years just because you think you know better.
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 06-26-2020 , 09:41   Re: Help for script..
Reply With Quote #5

Quote:
Originally Posted by supertrio17 View Post
That's not good enough explanation, it worked for you that way, do a little bit more research. You can't just go and deny everything they were learning for years just because you think you know better.
i didn't say that i just wanna say that there are a lot of more methods to do this
AnimalMonster is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-26-2020 , 19:35   Re: Help for script..
Reply With Quote #6

Quote:
Originally Posted by AnimalMonster View Post
SOON POSTING A NEW PLUGIN FOR ZP THAT WILL ADD XP AND AT THE SAME TIME MAKE A BUYMENU ON LEVELS
Only one question, what is so cool about this, and different so you made it bald? It's not hard to make that...
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 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 17:00.


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