AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to? (https://forums.alliedmods.net/showthread.php?t=128367)

donataz 05-31-2010 11:02

how to?
 
How to take away money from game,becau people buy all sort of things in buy zone

reinert 05-31-2010 11:20

Re: how to?
 
http://www.amxmodx.org/funcwiki.php?go=func&id=194

cs_set_user_money(id, 0)

donataz 05-31-2010 12:43

Re: how to?
 
where to edit this code?

fysiks 05-31-2010 12:43

Re: how to?
 
Quote:

Originally Posted by donataz (Post 1196278)
where to edit this code?

You write a plugin.

donataz 05-31-2010 12:52

Re: how to?
 
so if i understood i make plungin with inside code cs_set_user_money(id, 0) and name it what ever i want and then put it in place?

wrecked_ 05-31-2010 12:55

Re: how to?
 
Code:
#include <amxmodx> #include <cstrike> #include <hamsandwich> public plugin_init() {     register_plugin( "No Spawn Money", "1.0", "Wrecked" )     RegisterHam( Ham_Spawn, "player", "HamSpawnPost", 1 ) } public HamSpawnPost( id ) {     if( is_user_alive( id ) )     {         cs_set_user_money( id, 0 )     } }

donataz 05-31-2010 12:56

Re: how to?
 
thanks mate ;)

wrecked_ 05-31-2010 13:00

Re: how to?
 
Quote:

Originally Posted by donataz (Post 1196300)
thanks mate ;)

No problem.

donataz 05-31-2010 13:01

Re: how to?
 
could you make it a amxx file,i get some errors while trying to make it amxx

wrecked_ 05-31-2010 13:03

Re: how to?
 
http://www.amxmodx.org/webcompiler.cgi?go=dl&id=879645


All times are GMT -4. The time now is 05:17.

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