Raised This Month: $ Target: $400
 0% 

Get word three.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 04-03-2005 , 15:58   Get word three.
Reply With Quote #1

With this the script works it returns what i just wrote ingame...

Code:
#include <amxmodx> #include <string> public plugin_init() {     // ..     register_clcmd("say","handle_say") } public handle_say(id) {     new message[298]     read_argv(2,message,297)         client_print(id,print_chat,"You said: %s",message)     return PLUGIN_CONTINUE }

What i want it to do is. So when i f.e write healme <3000> ( healme <cash> ) then it should use the 3000 to go to an if function like this:

Code:
if (cs_get_user_money(id) > 3000) {   cs_set_user_money(id,get_user_money(id)) - 3000   client_print(id,print_chat,"You just bought 50 HP") }

And then i dont know how i can get the word/intergers (3000) into the if function...

Hope you'll understand this..
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
 



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 09:55.


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