Raised This Month: $12 Target: $400
 3% 

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: Xellath
Forum: Scripting Help 08-14-2013, 07:03
Replies: 4
Views: 1,574
Posted By Xellath
Re: Timeleft in rounds

Served on a silver platter.
Forum: Scripting Help 08-14-2013, 06:59
Replies: 5
Views: 1,394
Posted By Xellath
Re: query_client_cvar cant read *.000 value

new Float:iValue = str_to_float(value)


Also, since you're printing using %.2f you restrict it from printing more than 2 decimals. Use %f. IIRC, str_to_float() is also known to be slightly...
Forum: Scripting Help 08-14-2013, 06:51
Replies: 1
Views: 720
Posted By Xellath
Re: Sprite over entity ?

Make sure the model/sprite is precached.

If you want the sprite to follow your entity you can assign its pev_aiment to the owner entity. Note that pev_movetype has to be MOVETYPE_FLY.

For...
Forum: Scripting Help 08-14-2013, 06:46
Replies: 4
Views: 1,574
Posted By Xellath
Re: Timeleft in rounds

That is pretty easily achieved.

Add the following in timeleft.sma and recompile it:

Under new g_Switch and above plugin_init() add:

new Rounds = 0;


Inside the plugin_init() function...
Forum: Scripting Help 08-14-2013, 06:27
Replies: 7
Views: 1,483
Posted By Xellath
Re: Giving M249 Not working

If you are unsure, check the funcwiki or any amxx/hl1 documentation - the answer is always at hand.

To not only ramble about searching, if you're lazy like me - you can use this stock I made a...
Forum: Suggestions / Requests 01-28-2013, 09:00
Replies: 19
Views: 3,233
Posted By Xellath
Forum: Scripting Help 01-28-2013, 08:55
Replies: 4
Views: 1,527
Posted By Xellath
Re: Achievements API

You simply limit the the objective counter to the specific team. If their team is T, don't increment, otherwise increment. The achievement will be available for all, but only when they're on the set...
Forum: Scripting Help 01-28-2013, 08:50
Replies: 10
Views: 2,450
Posted By Xellath
Re: Player walk distance

Heres how I did it a while back, if it's of any help (you get the idea, it's pretty self-explanatory);


#define UnitsToMeters(%1) ( %1 * 0.0254 )

const FL_ONGROUND2 = ( FL_ONGROUND |...
Forum: Suggestions / Requests 01-28-2012, 10:38
Replies: 3
Views: 1,797
Posted By Xellath
Re: [REQ] Simple Standup-Countjump(SCJ) Stats for HnS

Did you even read what he said?



If you go the uq_jumpstats (http://forums.alliedmods.net/showthread.php?t=141586) main post and see the cfg - you can actually customize it very much. Scroll...
Forum: Off-Topic 01-27-2012, 10:50
Replies: 4
Views: 1,879
Posted By Xellath
Re: ACTA (Danish SOPA) confirmed

It's not just European. ACTA is a plurilateral agreement that will establish a new international legal framework that countries can join voluntarily. Meaning that any country, worldwide, can join in...
Forum: Scripting Help 01-24-2012, 17:13
Replies: 34
Views: 4,353
Posted By Xellath
Re: scripting newb questions

The description of the native is always above it.

What don't you get? It sets the specified parameter to the specified value.


// Ham_TakeDamage parameters:
// client, inflictor, attacker,...
Forum: Scripting Help 01-24-2012, 17:04
Replies: 2
Views: 4,673
Posted By Xellath
Re: whats the different of ExecuteHam and ExecuteHamB

They both execute the virtual function on the entity, but ExecuteHamB will trigger all the hooks that has been made on the virtual function.

Example:

Let say you have a takedamage hook in a...
Forum: Approved Plugins 01-22-2012, 11:17
Replies: 42
Views: 47,136
Posted By Xellath
Re: Achievements API

Of course it's going to be incorrect (ie. not incremented just 0) if you check it in client_connect. The core needs confirmation from the sub-plugins that the achievement is completed - and when and...
Forum: Scripting Help 12-30-2011, 16:24
Replies: 10
Views: 2,766
Posted By Xellath
Re: Lightning beam to aiming point

Right. Have you tried using other values on the life, width and amplitude parameters?
Forum: Suggestions / Requests 12-30-2011, 14:13
Replies: 6
Views: 1,165
Posted By Xellath
Re: SQL Saving Method

Is the connection information correct? On some servers SQL fails the first time it's loaded, try changing the map - that should sort the connection out (if the connection info is correct in the first...
Forum: Scripting Help 12-30-2011, 13:51
Replies: 10
Views: 2,766
Posted By Xellath
Re: Lightning beam to aiming point

That will not create a beam to your aiming origin. You're getting the same origin twice.


if(!g_iOrigins[0][0])
{
get_user_origin(id, g_iOrigins[0], 1);
client_print(id, print_chat, "Origin...
Forum: Scripting Help 12-17-2011, 09:29
Replies: 13
Views: 8,470
Posted By Xellath
Re: [Help] Change Team score values

Nbanow requested a "live" - "warmup" version of the code I posted above - so here it is.


#include < amxmodx >
#include < cstrike >

// team names
// CS_TEAM_UNASSIGNED
// CS_TEAM_T
//...
Forum: Scripting Help 12-16-2011, 11:52
Replies: 16
Views: 2,580
Posted By Xellath
Re: Get cz bots to stop when shooting

Forgot about that. Thanks. Edited.
Forum: Scripting Help 12-15-2011, 17:40
Replies: 16
Views: 2,580
Posted By Xellath
Re: Get cz bots to stop when shooting

#include < amxmodx >
#include < hamsandwich >
#include < fun >

const m_pPlayer = 41;

public plugin_init( )
{
new WeaponName[ 32 ];
// no knifes, nades or c4
Forum: Scripting Help 12-15-2011, 15:48
Replies: 7
Views: 1,634
Posted By Xellath
Re: memcpy() equivalent?

From what I gather from the first post, it seems he wants it to be a string. I could be wrong though.
Forum: Scripting Help 12-15-2011, 15:42
Replies: 7
Views: 1,634
Posted By Xellath
Re: memcpy() equivalent?

Afraid there's no equivalent of memcpy() in the AMXX toolkit.

You could do something like this however:

new Input[ ] = { 3, 1, 3, 1, 3 };
new Output[ 6 ];
memcpy( Input, Output );
// Output:...
Forum: Scripting Help 12-15-2011, 15:08
Replies: 2
Views: 2,415
Posted By Xellath
Re: pev(id, pev_velocity, velocity) | I'm confused

Not entirely sure what you're trying to accomplish...

Anyway, you're printing integers when the velocity is a floated number. %i -> %f
You should also store the value of fm_get_ent_speed in a...
Forum: Scripting Help 12-15-2011, 14:59
Replies: 16
Views: 2,580
Posted By Xellath
Re: Get cz bots to stop when shooting

You could try hooking Ham_Weapon_PrimaryAttack in both Pre (and set maxspeed to 0.1) and in Post (reset the maxspeed).
Forum: Scripting Help 12-15-2011, 14:56
Replies: 13
Views: 2,481
Posted By Xellath
Re: How to hide this text?

This is the Scripting Help board. I told you what you could do in order to achieve your goal; if you can't use the information I provided for you - post a request instead (in the Request section).
Forum: Scripting Help 12-15-2011, 14:54
Replies: 1
Views: 696
Posted By Xellath
Re: Spawn entity light.

Set pev|EV_INT_effects to EF_BRIGHTLIGHT or make the entity think and send out a TE_DLIGHT temporary entity.
Showing results 1 to 25 of 500

 
Forum Jump

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


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