Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 353
Search took 0.01 seconds.
Search: Posts Made By: OnePL
Forum: Scripting Help 05-10-2020, 12:40
Replies: 8
Solved team name
Views: 1,253
Posted By OnePL
Re: team name

Only teamId (https://github.com/alliedmodders/amxmodx/blob/9bcabfeb1f774439475313c30fb3fe256870268f/amxmodx/emsg.cpp#L257) is gets from ScoreInfo
Forum: Scripting Help 05-09-2020, 18:36
Replies: 8
Solved team name
Views: 1,253
Posted By OnePL
Re: team name

new szTeam[16], lFirstSaid[64];
get_user_team(z, szTeam, charsmax(szTeam));

format(lFirstSaid, 63, "%s - %i: %i: %i - %s -",aname, g_s[z][TIME_MINUTES], g_s[z][TIME_SECONDS],...
Forum: Scripting Help 01-13-2020, 10:42
Replies: 16
Views: 2,261
Posted By OnePL
Re: Read minus and zero number

eg. -1, -2, -545335 or 0
Forum: Scripting Help 01-12-2020, 13:40
Replies: 16
Views: 2,261
Posted By OnePL
Re: Read minus and zero number

public client_command(id) {
static szCommand[32];
read_argv(0, szCommand, 31);

if(!(equal(szCommand, "say") || equal(szCommand, "say_team"))) return 0;

static szSaid[192];
read_argv(1,...
Forum: Scripting Help 01-12-2020, 11:51
Replies: 16
Views: 2,261
Posted By OnePL
Read minus and zero number

How to read a minus, zero number from string?
is_str_num return false if string have a minus/zero number
Forum: Scripting Help 09-27-2018, 16:36
Replies: 3
Views: 830
Posted By OnePL
Re: Think and origin & sizes

I get maxs and mins:
static Float:fStart[3], Float:fEnd[3], Float:fTemp[3];
pev(id, pev_origin, fStart);
pev(id, pev_view_ofs, fTemp);

fStart[0] += fTemp[0];
fStart[1] += fTemp[1];...
Forum: Scripting Help 09-26-2018, 06:18
Replies: 3
Views: 830
Posted By OnePL
Think and origin & sizes

Coordination (jail_pyramid map):
//maxs
g_fFieldSize[0][0] = -1564.17
g_fFieldSize[0][1] = -85.03
g_fFieldSize[0][2] = -313.79

//mins
g_fFieldSize[1][0] = -3090.92
g_fFieldSize[1][1] =...
Forum: Scripting Help 08-05-2018, 17:53
Replies: 11
Views: 1,753
Posted By OnePL
Re: Wait N amount of seconds?

#include <amxmodx>
#include <fun>

new g_iPlayerNextUse[33];

public plugin_init() register_clcmd("say /health", "Clcmd_Health");

public client_disconnected(id) g_iPlayerNextUse[id] = 0;
...
Forum: Scripting Help 05-03-2017, 09:35
Replies: 3
Views: 1,994
Posted By OnePL
Re: Invalid index 0 (count: 0)

@ PRoSToTeM@ thanks,
Forum: Scripting Help 05-02-2017, 12:22
Replies: 3
Views: 1,994
Posted By OnePL
Invalid index 0 (count: 0)

Why error occurs "Invalid index 0 (count: 0)" in this code?



#include <amxmodx>

#pragma semicolon 1

const g_iSelectMaps = 5; // max 8
const g_iVoteTime = 15;
Forum: Scripting Help 04-27-2017, 18:43
Replies: 33
Views: 4,849
Posted By OnePL
Re: get_user_time is not supported in client_disconnected?

In logs I noticed that client_disconnected forward is executed on the new map
(...)
L 04/27/2017 - 23:51:05: "naXe<2503><STEAM_0:0:39471739><TERRORIST>" disconnected
(...)
L 04/27/2017 -...
Forum: Scripting Help 04-27-2017, 18:39
Replies: 33
Views: 4,849
Posted By OnePL
Re: get_user_time is not supported in client_disconnected?

I do not have this file, condebug is disabled
Forum: Scripting Help 04-27-2017, 17:53
Replies: 33
Views: 4,849
Posted By OnePL
Re: get_user_time is not supported in client_disconnected?

L 04/27/2017 - 23:51:06: ID: 16 - get_user_time: 0 - getUserTime float: 0.000000 - getUserTime floatround: 0
L 04/27/2017 - 23:51:07: ID: 21 - get_user_time: 0 - getUserTime float: 0.000000 -...
Forum: Scripting Help 04-27-2017, 17:12
Replies: 33
Views: 4,849
Posted By OnePL
Forum: Scripting Help 04-27-2017, 16:46
Replies: 33
Views: 4,849
Posted By OnePL
Re: get_user_time is not supported in client_disconnected?

get_user_time returns 0 when map is changing (server is full - 32 players)
Forum: Scripting Help 04-27-2017, 02:42
Replies: 33
Views: 4,849
Posted By OnePL
Forum: Scripting Help 04-27-2017, 01:17
Replies: 33
Views: 4,849
Posted By OnePL
Re: get_user_time is not supported in client_disconnected?

Sorry, get_user_time returns 0 when map is changing (server is full - 32 players)
Forum: Scripting Help 04-25-2017, 08:48
Replies: 33
Views: 4,849
Posted By OnePL
Re: get_user_time is not supported in client_disconnected?

#include <amxmodx>

public client_disconnected(id) {
new szName[32];
get_user_name(id, szName, 31);
log_to_file("test.log", "player (%i) %s (time %i) disconnected", id, szName,...
Forum: Scripting Help 04-24-2017, 12:54
Replies: 33
Views: 4,849
Posted By OnePL
Re: get_user_time is not supported in client_disconnected?

That's right, but why does it return 0 before disconnecting?
Forum: Scripting Help 04-24-2017, 10:26
Replies: 33
Views: 4,849
Posted By OnePL
get_user_time is not supported in client_disconnected?

get_user_time is not supported in client_disconnected in AMXX 1.8.3?
Always returns 0
Forum: Scripting Help 03-23-2016, 02:13
Replies: 1
Views: 552
Posted By OnePL
Re: [Quick Question] Percent Symbol in String?

write twice '%%' in the string
Forum: Scripting Help 03-20-2016, 21:42
Replies: 15
Views: 1,532
Posted By OnePL
Re: Get team resoult

#include <amxmodx>

enum eTeams { TEAM_T, TEAM_CT };

new g_iScore[eTeams];

public plugin_init() {
register_event("TeamScore", "TeamScore", "a", "1=TERRORIST", "1=CT");

set_task(1.0,...
Forum: Scripting Help 03-14-2016, 16:17
Replies: 0
Views: 300
Posted By OnePL
Help with give a weapon when dropped a weapon is on the ground

Following code does not work, why? What is wrong with it?

register_forward(FM_SetModel, "SetModel");

public SetModel(iEnt, szModel[]) {
if(!pev_valid(iEnt) || g_iDuelType != 7 || ~pev(iEnt,...
Forum: General 02-21-2016, 18:51
Replies: 13
Views: 2,673
Posted By OnePL
Re: CHalfLifeMultiplay::DeathNotice(PlayerKilled) crash

So how I should properly set a inflictor?
Forum: General 02-21-2016, 18:10
Replies: 13
Views: 2,673
Posted By OnePL
Re: CHalfLifeMultiplay::DeathNotice(PlayerKilled) crash

Next problem with this stock...
When I use:
RegisterHamPlayer(Ham_TakeDamage, "BlockTakeDamage");
RegisterHamPlayer(Ham_TraceAttack, "BlockTraceAttack");

public BlockTakeDamage(id, iEnt,...
Showing results 1 to 25 of 353

 
Forum Jump

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


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