Raised This Month: $7 Target: $400
 1% 

Showing results 1 to 25 of 116
Search took 0.01 seconds.
Search: Posts Made By: LondoN
Forum: Scripting Help 10-18-2021, 07:05
Replies: 16
...
Views: 2,175
Posted By LondoN
Re: Ham_Touch

As i can see you are try to compare a string with an entity id.

i think correct should be

new ent = engfunc...create ent

public ham_touch(parms)
{
if(iEntity == ent)
{
Forum: Scripting Help 05-14-2021, 12:42
Replies: 2
Views: 660
Posted By LondoN
Re: player models bug

found the solution

new hModel[32];
formatex(hModel, charsmax(hModel), "%s", g_hDBModels[g_hPlayerModel]);
cs_set_user_model(id, hModel);

this is the solution.
Forum: Scripting Help 05-14-2021, 12:30
Replies: 2
Views: 660
Posted By LondoN
player models bug

#include < amxmodx >
#include < amxmisc >
#include < cstrike >
#include < hamsandwich >

#define PLUGIN "Player Models"
#define VERSION "1.0"
#define AUTHOR "LondoN eXtream"

#define...
Forum: Scripting Help 05-09-2021, 17:06
Replies: 16
Views: 1,738
Posted By LondoN
Re: Entity Solidity ?

i think the big 'changes' will be into a "register_touch"

and then play with pev_solid
Forum: Scripting Help 05-09-2021, 16:44
Replies: 5
Solved team score
Views: 533
Posted By LondoN
Re: team score

he said team score [rounds] not player score

enum ScoreData
{
TERO_SCORE = 0,
TERO_SCORE_AFTER_SWAP,
CT_SCORE,
CT_SCORE_AFTER_SWAP
};
Forum: Scripting Help 05-07-2021, 16:04
Replies: 5
Views: 690
Posted By LondoN
Re: str_to_num question

strbeak or parse will resolve your problem.


you need to elimitate the ":" from the string.

Also replace get_time with time(h,m,s).
And after this use str_to_num.

If you dont want,...
Forum: Scripting Help 05-05-2021, 04:30
Replies: 4
Views: 640
Posted By LondoN
Re: check a string from enum

you can use strlen too.
Forum: Scripting Help 05-03-2021, 17:54
Replies: 7
Views: 741
Posted By LondoN
Re: sql save problem

oh, i forgot

mysql_escape_string(dest[],len)
{
//copy(dest, len, source);
replace_all(dest,len,"\\","\\\\");
replace_all(dest,len,"\0","\\0");
...
Forum: Scripting Help 05-03-2021, 17:33
Replies: 7
Solved weapon names
Views: 1,020
Posted By LondoN
Re: weapon names

stock weapon_name( id )
{
new szWpName[ 40 ];
get_weaponname( get_user_weapon( id ) , szWpName, charsmax( szWpName ) );

replace( szWpName, charsmax( szWpName ), "weapon_", "" );
ucfirst(...
Forum: Scripting Help 05-03-2021, 17:22
Replies: 7
Views: 741
Posted By LondoN
Re: sql save problem

public client_putinserver(id)
{
if(is_user_bot(id) || is_user_hltv(id))
return;

get_user_name(id, g_iPlayersInfo[id][Name], charsmax(g_iPlayersInfo[][Name]));
get_user_ip(id,...
Forum: Scripting Help 04-24-2021, 14:54
Replies: 7
Views: 801
Posted By LondoN
Re: Get_players stock

it's depend on how you use the stock.

Let's take an example:

instead of putting 250 as health (stock parameter) we also can use get_pcvar_num to take the value from a cvar.
if the cvar is zero...
Forum: Scripting Help 04-24-2021, 12:52
Replies: 7
Views: 801
Posted By LondoN
Re: Get_players stock

stock get_and_set(szFlags[] = "", szTeam[] = "", iHealth)
{
new Players[32], iNum;
get_players(Players, iNum, szFlags, szTeam);

for(new i; i < iNum; i++)
{
if(!iHealth)
break;
Forum: Scripting Help 04-24-2021, 08:49
Replies: 3
Views: 520
Posted By LondoN
choosemap plugin

https://i.imgur.com/7jacpoM.png

know somebody how can i do somethink like that?
(code examples)
Forum: Scripting Help 04-19-2021, 10:22
Replies: 6
Views: 740
Posted By LondoN
Re: Write to .txt file and put +1

#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
new g_szFileName[128];
formatex(g_szFileName[get_configsdir(g_szFileName, charsmax(g_szFileName))], charsmax(g_szFileName),...
Forum: Scripting Help 04-19-2021, 03:54
Replies: 6
Views: 832
Posted By LondoN
Re: Whats wrong in this mysql?

public client_connect(id)
{
new g_szAuthID[32];
get_user_authid(id, g_szAuthID, charsmax(g_szAuthID));

new g_szQuery[256];
formatex(g_szQuery, charsmax(g_szQuery), "SELECT * FROM tablename...
Forum: Scripting Help 04-19-2021, 03:49
Replies: 10
Views: 1,589
Posted By LondoN
Re: How can I make NPCs avoid obstacles ?

I don't know if i'm right, but why you didn't apply 'semiclip' on NPC's to avoid obstacles? I think you can make pass them playing with pev_solid
Forum: Scripting Help 04-19-2021, 03:46
Replies: 21
Views: 1,832
Posted By LondoN
Re: I need ideas to solve this

new g_PlayerLevel[MAX_PLAYERS+1];
new Handle: g_SQLTuple;

new const g_szFile[] = "addons/amxmodx/configs/sql_dump.txt";

public client_disconnect(id)
{
if(is_user_bot(id) ||...
Forum: Scripting Help 04-14-2021, 14:39
Replies: 21
Views: 1,832
Posted By LondoN
Re: I need ideas to solve this

you can save queries in a .txt file. When ddos is done and mysql server respond just insert the data from the .txt file in db. Then remove the .txt file
Forum: Scripting Help 04-09-2021, 07:51
Replies: 11
Views: 1,021
Posted By LondoN
Re: Force client into messagemode say

i have a little question...

messagemode is not blocked by cl_filterstuffcmd?
Forum: Scripting Help 04-07-2021, 19:48
Replies: 5
Views: 539
Posted By LondoN
Re: how to deal with task spam?

CSX is much better but if he want's to block default messages still need to hook his way.
Forum: Scripting Help 04-07-2021, 18:51
Replies: 5
Views: 539
Posted By LondoN
Re: how to deal with task spam?

Try removing the 'id+taskid' and just use 0 = for all players
Forum: Scripting Help 04-07-2021, 15:30
Replies: 14
Views: 1,277
Posted By LondoN
Re: check prefix of fps_max or any other command

probably he uses amxx 182 who's not supporting query_client_var. it will be better if he provides us the amxx version he uses
Forum: Scripting Help 04-07-2021, 13:11
Replies: 4
Views: 565
Posted By LondoN
Re: Grenade no effect if armor is above 500

set_pev(victim, pev_armorvalue, armor-500.0);
Forum: Scripting Help 04-07-2021, 12:54
Replies: 4
Views: 565
Posted By LondoN
Re: Grenade no effect if armor is above 500

static Float: armor;
pev(victim, pev_armorvalue, armor);

if(armor >= 500.0)
{
set_pev(victim, pev_armorvalue, 0.0);
break;
}

in while() just do somethink like this. using break will stop...
Forum: Scripting Help 04-06-2021, 16:05
Replies: 6
Solved write_bye
Views: 719
Posted By LondoN
Re: write_bye

set_msg_block(get_user_msgid("ScoreInfo"), BLOCK_SET);

/* here update scoreboard */

/* then enable it again */
Showing results 1 to 25 of 116

 
Forum Jump

All times are GMT -4. The time now is 03:36.


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