AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Plz help!! (https://forums.alliedmods.net/showthread.php?t=54069)

exelz 04-16-2007 11:48

Plz help!!
 
Can someone please show me hou to make that some items give extra dmg and extra AP?
PLEASE HELP!!!

regalis 04-16-2007 16:05

Re: Plz help!!
 
hmm, some items?
Are you searching for an presents spawner or something? ;)

exelz 04-17-2007 06:22

Re: Plz help!!
 
i want to make like mod where players can buy armors that adds AP and weapons that adds extra dmg to all cs guns

regalis 04-17-2007 15:00

Re: Plz help!!
 
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

exelz 04-17-2007 23:50

Re: Plz help!!
 
ok ty,but how can i know what index i most put from 1 to 32?

regalis 04-18-2007 06:32

Re: Plz help!!
 
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

scrtxxcaz 04-18-2007 08:28

Re: Plz help!!
 
1 Attachment(s)
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

Samurai [/] 04-18-2007 10:41

Re: Plz help!!
 
Quote:

Originally Posted by regalis (Post 466407)
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.

VEN 04-19-2007 05:16

Re: Plz help!!
 
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).

exelz 04-26-2007 00:00

Re: Plz help!!
 
but hou can i make like so that admins can but extra dmg to players(admins can choose what weapon)


All times are GMT -4. The time now is 06:38.

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