Raised This Month: $ Target: $400
 0% 

Little Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fireattack
Senior Member
Join Date: Jul 2008
Old 08-24-2010 , 09:16   Re: Little Help
Reply With Quote #6

omg, people, don't be hard..

here you go.

PHP Code:
 
 
if (cs_get_user_money(id) < 10000
I think "Epic Fail" you will understand this, if not, you have a problem with scripting, however if you are a begginer i can do a example plugin for you.

PHP Code:
// LOOK AT THE "<" ">" "="
 
if (cs_get_user_money(id) < 10000){
 
client_print(idprint_center"Sorry but you're poor")
 return 
PLUGIN_HANDLED;
}
 if (
cs_get_user_money(id) >= 10000 ){
client_print(idprint_center"yeayeayea, you bought this")
 if(
is_user_connected(id))
 {
 
// Here you have to do something
 
 
}
 
cs_set_user_money(id cs_get_user_money(id) - 100000)
 } 

Last edited by fireattack; 08-24-2010 at 09:19.
fireattack is offline
 



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 21:54.


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