Raised This Month: $ Target: $400
 0% 

Plz help!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
exelz
Member
Join Date: Oct 2006
Old 04-16-2007 , 11:48   Plz help!!
Reply With Quote #1

Can someone please show me hou to make that some items give extra dmg and extra AP?
PLEASE HELP!!!
__________________
exelz is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-16-2007 , 16:05   Re: Plz help!!
Reply With Quote #2

hmm, some items?
Are you searching for an presents spawner or something? ;)
__________________
regalis is offline
exelz
Member
Join Date: Oct 2006
Old 04-17-2007 , 06:22   Re: Plz help!!
Reply With Quote #3

i want to make like mod where players can buy armors that adds AP and weapons that adds extra dmg to all cs guns
__________________
exelz is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-17-2007 , 15:00   Re: Plz help!!
Reply With Quote #4

Here you can search for funktions reference:
http://www.amxmodx.org/doc/

example: search for "set_user_armor"

or simply look at the fun.inc

There are these functions implemented:
Quote:
get_client_listen - Returns 1 if receiver hears sender via voice communication.
get_user_godmode - Returns 1 if godmode is set.
get_user_gravity - Returns users gravity
get_user_hitzones - Get user hitzones.
get_user_maxspeed - Returns users max. speed.
get_user_noclip - Returns 1 if noclip is set on a player.
give_item - Gives an item to a player.
set_client_listen - Sets who can listen who.
set_user_armor - Sets player armor.
set_user_footsteps - Gives player silent footsteps if set is 1.
set_user_godmode - Sets player godmode. If you want to disable godmode set only first parameter.
set_user_gravity - Sets users gravity
set_user_health - Sets player health.
set_user_hitzones - Sets hit zones for player.
set_user_maxspeed - Sets a user's maxspeed
set_user_noclip - Sets player noclip. If you want to disable noclip set only first parameter.
set_user_origin - Move player to origin
set_user_rendering - Sets player rendering mode.
spawn - Spawns entity.
strip_user_weapons - Strips all weapons from user
greetz regalis
__________________
regalis is offline
exelz
Member
Join Date: Oct 2006
Old 04-17-2007 , 23:50   Re: Plz help!!
Reply With Quote #5

ok ty,but how can i know what index i most put from 1 to 32?
__________________
exelz is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-18-2007 , 06:32   Re: Plz help!!
Reply With Quote #6

Maybe you should read the coding help in the amxmodx wiki!?
There are many way's to get the players index...not shure which case you wanna process.

http://wiki.alliedmods.net/index.php/Pawn_Tutorial
__________________
regalis is offline
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 04-18-2007 , 08:28   Re: Plz help!!
Reply With Quote #7

you dont really put an index...they should be set one automatically once they enter the server(correct me if im wrong)

if u want to get there index though, you could do
Code:
new userindex = get_user_index(const name[])
you can aslo look in the amxmodx.txt file if you havent already
Attached Files
File Type: inc amxmodx.inc (38.2 KB, 101 views)
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
Samurai [/]
Member
Join Date: Sep 2006
Old 04-18-2007 , 10:41   Re: Plz help!!
Reply With Quote #8

Quote:
Originally Posted by regalis View Post
Here you can search for funktions reference:
http://www.amxmodx.org/doc/

example: search for "set_user_armor"

or simply look at the fun.inc

There are these functions implemented:


greetz regalis
There is nn for documentation. They're already in ur scripting/include folder. 'funktion' i see that you're german.

EDIT: You can't chance dmg of a weapon. Correct me if im wrong, but maybe there is other way to do it.
__________________

Last edited by Samurai [/]; 04-18-2007 at 10:44.
Samurai [/] is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 04-19-2007 , 05:16   Re: Plz help!!
Reply With Quote #9

Quote:
You can't chance dmg of a weapon. Correct me if im wrong, but maybe there is other way to do it.
Ham Sandwich module by sawce (look into Module / Coding section for details).
VEN is offline
exelz
Member
Join Date: Oct 2006
Old 04-26-2007 , 00:00   Re: Plz help!!
Reply With Quote #10

but hou can i make like so that admins can but extra dmg to players(admins can choose what weapon)
__________________
exelz 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 06:38.


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