Raised This Month: $12 Target: $400
 3% 

Give free access by the command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 11-23-2013 , 04:29   Give free access by the command
Reply With Quote #1

Can anyone help with this code?

When player type /vip he will get flag H. 5 max players can have that flag in current map. After player disconnect remove flag and let another player to take it by using /vip. Hope you understand.

PHP Code:
#pragma semicolon 1 

Last edited by Debesėlis; 11-26-2013 at 11:48.
Debesėlis is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-23-2013 , 05:38   Re: Give free access by the command
Reply With Quote #2

What are you having issues with? (If you are going to post here for help, you need to describe what your problem is)
__________________
fysiks is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 11-23-2013 , 05:47   Re: Give free access by the command
Reply With Quote #3

I didn't test it. Just want to ask is it right code? And do i need to use iAmount[ id ]--; in player_disconnect?


client_print( id, print_chat, "* Access given %d from %d!", iAmount, get_pcvar_num( g_Amount ) );

How to print how many access given in current moment? i think iAmount will be wrong?

Last edited by Debesėlis; 11-23-2013 at 05:51.
Debesėlis is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-23-2013 , 15:47   Re: Give free access by the command
Reply With Quote #4

Quote:
Originally Posted by Debesėlis View Post
I didn't test it. Just want to ask is it right code?
If you haven't tested the code then you shouldn't be posting it. All you are doing is wasting our time. Always test your code first so you can figure out the simple problems on your own.
__________________
fysiks is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 11-24-2013 , 10:10   Re: Give free access by the command
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
If you haven't tested the code then you shouldn't be posting it. All you are doing is wasting our time. Always test your code first so you can figure out the simple problems on your own.
i test it and doesn't work.
"* Access given 0 from 5!"
Doesn't give me access.

iAmount[ id ] is only for same ID? i need it what 5 different players can take access by using /vip.

Must show :
* Access given 4 from 5!
* Access given 3 from 5!
* Access given 2 from 5!
Debesėlis 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 08:28.


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