Raised This Month: $ Target: $400
 0% 

Only 1 for round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xfire97
Member
Join Date: Aug 2011
Old 03-26-2012 , 10:42   Only 1 for round
Reply With Quote #1

Close the topic i alread fix with help!
Attached Files
File Type: sma Get Plugin or Get Source (LASEVIP.sma - 565 views - 39.8 KB)

Last edited by xfire97; 03-26-2012 at 12:27. Reason: fixed
xfire97 is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 03-26-2012 , 12:07   Re: Only 1 for round
Reply With Quote #2

PHP Code:
new boolhasLaser;

public 
client_connect(id)
{
       
hasLaser false

}
in the function of the laser

if (hasLaser[id] == true)

     
client_print(id"You already used your laser this round")
}
else
{
your laser code.
hasLaser true


there you go

Last edited by Bilal Pro; 03-26-2012 at 12:08.
Bilal Pro is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 03-26-2012 , 12:21   Re: Only 1 for round
Reply With Quote #3

Quote:
Originally Posted by Bilal Pro View Post
PHP Code:
new boolhasLaser;

public 
client_connect(id)
{
       
hasLaser false

}
in the function of the laser

if (hasLaser[id] == true)

     
client_print(id"You already used your laser this round")
}
else
{
your laser code.
hasLaser true


there you go
To set a bool to true or false, use hasLaser[id] = true/false. Else you will get errors because you didn't index the bool.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
xfire97
Member
Join Date: Aug 2011
Old 03-26-2012 , 12:26   Re: Only 1 for round
Reply With Quote #4

I already fix with help closed topic!
xfire97 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 16:27.


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