AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get word three. (https://forums.alliedmods.net/showthread.php?t=12035)

stigma 04-03-2005 15:58

Get word three.
 
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.. :)


All times are GMT -4. The time now is 09:55.

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