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

Showing results 1 to 25 of 40
Search took 0.00 seconds.
Search: Posts Made By: jok
Forum: Scripting Help 05-10-2014, 07:13
Replies: 7
Views: 1,664
Posted By jok
Re: Player walk distance

What do you mean player walk distance?

Distance from one origin to another?

If so you can use get_distance for integers or get_distance_f for float.
Forum: Scripting Help 05-06-2014, 18:37
Replies: 7
Views: 811
Posted By jok
Re: [help] i can set models with chance to the players

There's no need for random_num here, though it could be used aswell.
Also, you have a slight mistake in your example. MODEL_VARIADOS's elements go from 0 to 3.
You did random_num( 0, 4 ) which can...
Forum: Scripting Help 05-01-2014, 20:02
Replies: 7
Views: 811
Posted By jok
Re: [help] i can set models with chance to the players

If I got you right, you want random models. So use this:

cs_set_user_model( i, MODEL_VARIADOS[ random( 4 ) ] );
Forum: Scripting Help 04-29-2014, 08:31
Replies: 4
Views: 1,090
Posted By jok
Re: Unlock System for knifes errors.

enum _:Knife_Shop
{
Dual_Katana
Dragon_Sword
Beam_Sword
Balrog_9
}

->
Forum: Scripting Help 04-13-2014, 20:04
Replies: 13
Views: 1,508
Posted By jok
Re: Looping

whoops, fixed.
Forum: Scripting Help 04-13-2014, 18:41
Replies: 13
Views: 1,508
Posted By jok
Re: Looping

He said he's a starter, I didn't want to confuse him with anything, and yet I did say at the bottom that he can set a variable with the value of the max players in the server, and use that instead of...
Forum: Scripting Help 04-13-2014, 16:26
Replies: 13
Views: 1,508
Posted By jok
Re: Looping

Your while loop will not work AFAIK.
It doesn't work like a for loop where you're allowed to set the variable within the while's parenthesis.
You're gonna have to declare variable i above the loop.
Forum: Scripting Help 04-13-2014, 15:39
Replies: 13
Views: 1,508
Posted By jok
Re: Looping

No since:
give_item( index,weaponString ) doesn't give everyone a weapon when you put 0 as index like other functions ( for example show_hudmessage ), putting 0 as index will actually try giving the...
Forum: Scripting Help 04-13-2014, 15:18
Replies: 13
Views: 1,508
Posted By jok
Re: Looping

I'll show you looping through players, that'll give you the main idea and the way to loop through players.

Players are entities. ( If you don't know what entities are, you can read at some entity...
Forum: Scripting Help 04-11-2014, 17:41
Replies: 2
Views: 495
Posted By jok
Re: set_es color

I just need specific players to be able to watch themselves. I don't need others to see the glow too, therefore I don't use set_user_rendering for this.
Forum: Scripting Help 04-11-2014, 15:32
Replies: 2
Views: 495
Posted By jok
set_es color

My current code has this within the addtofullpack function:

set_es( State, ES_RenderFx, kRenderFxGlowShell );
set_es( State, ES_RenderColor, { 255, 0 , 0 } );
set_es( State, ES_RenderMode,...
Forum: Scripting Help 04-08-2014, 14:47
Replies: 3
Views: 733
Posted By jok
Re: move ent

What?..
This code just displays a HUD message and returns 1. Nothing else.
Forum: Scripting Help 04-07-2014, 17:29
Replies: 13
Views: 6,074
Posted By jok
Re: Compilation error

Not sure if this is a windows 8 related problem but you might want to try running with compatibility mode for windows 7 and as an administrator.
Forum: Scripting Help 04-07-2014, 10:57
Replies: 10
Views: 3,504
Posted By jok
Re: error 035: argument type mismatch (argument 1)

It's not necessary to check for ADMIN_KICK here since you're already doing it in the function
register_concmd("say /am", "adm_menu", ADMIN_KICK)
register_concmd("say_team /am", "adm_menu",...
Forum: Scripting Help 04-07-2014, 09:48
Replies: 10
Views: 3,504
Posted By jok
Re: error 035: argument type mismatch (argument 1)

I think I understood what you're saying, not sure though:

case 4: if(get_user_flags(id) & ADMIN_KICK)
{
client_cmd( id, "say .gg" )
server_cmd( "exec gg.cfg" )
}

If you meant...
Forum: Scripting Help 04-07-2014, 09:43
Replies: 2
Views: 756
Posted By jok
Re: [CS/CZ] What is the significance of "joinclass 6" ?

You can only use that command when you're dead, it transfers you to the spectators' team.
So I guess it also said the same when you were a spectator, since its reduntant to jointeam 6 when you're a...
Forum: Scripting Help 04-05-2014, 03:26
Replies: 18
Views: 3,227
Posted By jok
Re: Hepl me in my new plugin

https://forums.alliedmods.net/showthread.php?t=40164
Forum: Scripting Help 03-31-2014, 15:56
Replies: 3
Views: 768
Posted By jok
Re: [HELP] What wrong here?

// global variable:
new g_iMsgId_ScreenFade;

in public plugin_init( ):
g_iMsgId_ScreenFade = get_user_msgid( "ScreenFade" );

in public RoundEnd( ):
message_begin(MSG_ALL,...
Forum: Scripting Help 03-29-2014, 20:39
Replies: 9
Views: 2,250
Posted By jok
Re: "Unregister" or block command?

if I got you right:
disassemble the plugin (can only be done if it was compiled before latest amxmodx version) and read the strings for possible commands.
Forum: Scripting Help 03-29-2014, 20:38
Replies: 2
Views: 513
Posted By jok
Re: (Not)solid player

Basically you're saying that if player X tries to pass through player Y, he'll manage to do that, but if player Y tries to pass through player Z, he can't?

I might be mistaken but I think you need...
Forum: Scripting Help 03-11-2014, 17:44
Replies: 11
Views: 2,336
Posted By jok
Re: Entity affected by gravity

use entity_set_float( iEnt, EV_FL_gravity, 1.0 );
Forum: Scripting Help 03-11-2014, 10:27
Replies: 4
Views: 1,196
Posted By jok
Re: set_es question

No because I need just two players to be able to see themselves glowing.

AFAIK set_user_rendering would let any player see their glow.
Forum: Scripting Help 03-10-2014, 14:27
Replies: 4
Views: 1,196
Posted By jok
set_es question

Is it possible to set both the player transparent, and have a glowing shell? I made it to work thogether but, the player's glow was fading in and out every moment.

I used this for transparecy:...
Forum: Scripting Help 02-28-2014, 09:41
Replies: 6
Views: 925
Posted By jok
Formatex copyback

I wonder, why does formatex sometimes have copyback problems ( happened to me a long in a for loop that repeats itself about 20 or 30 times while trying to use formatex to add items to a menu, fixed...
Forum: Scripting Help 12-26-2013, 09:03
Replies: 3
Views: 862
Posted By jok
Re: Difference between events and forwards

Thanks.

so for instance:
RegisterHam(Ham_Spawn, "player", "funcSpawn" )

if i got it right, then this means the event is player spawn, and the forward is funcSpawn.
is that correct?
Showing results 1 to 25 of 40

 
Forum Jump

All times are GMT -4. The time now is 18:01.


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