Raised This Month: $ Target: $400
 0% 

Showing results 1 to 21 of 21
Search took 0.00 seconds.
Search: Posts Made By: stas3
Forum: Scripting 08-21-2011, 07:38
Replies: 4
Views: 1,244
Posted By stas3
Re: mapchange, client (index)

I did this test:

1. add + 4 bots
2. i joined in server (my index = 5)
3. bot_kick
4. changelevel
5. my index again = 5 (index remains the same)
Forum: Scripting 08-20-2011, 13:02
Replies: 4
Views: 1,244
Posted By stas3
Re: mapchange, client (index)

I checked with the bots on the home server, my index has not changed. Need to do a test with real players. If someone can do a test or already knows the answer to the question, I hope to help.
Forum: Scripting 08-20-2011, 10:01
Replies: 4
Views: 1,244
Posted By stas3
mapchange, client (index)

When the map is changed, the clients indexes always remain the same, or it's randomly?

1.

xNick (client = 1)
yNick (3)
zNick (2)

2. changelevel
Forum: Scripting 07-31-2011, 11:40
Replies: 3
Views: 1,338
Posted By stas3
Re: PrintToServer in HLSW

SQL_TQuery(..., func, ..., ...); // In the request are no errors

public func(Handle:owner, Handle:hndl, const String:error[], any:x)
{
// text does not display in hlsw
...
Forum: Scripting 07-31-2011, 11:07
Replies: 3
Views: 1,338
Posted By stas3
PrintToServer in HLSW

Why PrintToServer not display text in the program HLSW? How to display text in HLSW?

---
Ok, ServerCommand("echo text") work, but ServerCommand("echo текст") (russian language) not work (utf-8, i...
Forum: Scripting 07-27-2011, 15:50
Replies: 7
Views: 1,608
Posted By stas3
Re: getplayerhandle

I've read wiki, that's asking because I do not understand. (Question about m_hOwnerEntity closed, I have long made what I wanted)

------
I found (the issue is closed.) It is a pity that so little...
Forum: Scripting 07-27-2011, 13:11
Replies: 7
Views: 1,608
Posted By stas3
Re: getplayerhandle

I have already asked the question, but nobody answered. Please tell me how to create such a structure (keyvalues)

"group"
{
"STEAM_1"
{
"k" "1"
"d" "3"
}
}
Forum: Scripting 07-26-2011, 15:56
Replies: 7
Views: 1,608
Posted By stas3
Re: getplayerhandle

I do not see how to do it in SDKHook.



I want to create the effect of grenades for certain players. handle is needed to determine what the flying grenade belongs to a given player. I do not...
Forum: Scripting 07-26-2011, 14:54
Replies: 7
Views: 1,608
Posted By stas3
Re: getplayerhandle

1. No, realy "handle" = 1589249, but EntIndexToEntRef show me -2145894399

And I came across another question: why do I see in chat:

1
2
1
2

As if SDKHook carried out twice, but it also...
Forum: Scripting 07-26-2011, 14:15
Replies: 7
Views: 1,608
Posted By stas3
getplayerhandle

1.

"1"
{
"classname" "player"
"handle" "1572865"
}

How to get "handle" ? In Eventscripts it's es.getplayerhandle(<userid>)
Forum: Scripting 07-25-2011, 17:59
Replies: 2
Views: 1,705
Posted By stas3
Re: Functions min/max for numbers

Ok, thank, but i have next question. If I want to give the object a name, need to do so:

DispatchKeyValue(index, "targetname", "x_name");

But in developer.valvesoftware.com/wiki/ it's not...
Forum: Scripting 07-25-2011, 11:37
Replies: 2
Views: 1,705
Posted By stas3
Functions min/max for numbers

If I have 5 numbers: 1, 3, 5, 7, 9. How can I find the largest and smallest number?
Features min/max, as I understand, there is no.

-------------
Ok, I've found SortIntegers
Forum: Scripting 07-16-2011, 07:27
Replies: 17
Views: 3,646
Posted By stas3
Re: a few questions (CS:S)

I still have not figured out how to create such a structure. But I have another question:

Is there a difference between these two options?

1.

new player_team[MAXPLAYERS+1];

// and when...
Forum: Scripting 07-14-2011, 01:33
Replies: 17
Views: 3,646
Posted By stas3
Re: a few questions (CS:S)

Please give a small example of how to create a structure:

"MyFile"
{
"STEAM_0:0:7"
{
"name" "crab"
}
}
Forum: Scripting 07-09-2011, 23:13
Replies: 17
Views: 3,646
Posted By stas3
Re: a few questions (CS:S)

If I want to keep certain information to the players how to do it in SourcePawn? In Eventscripts can save and load the dictionary with the help of cPickle. You must use SQL + php? What are my options?
Forum: Scripting 07-07-2011, 20:35
Replies: 17
Views: 3,646
Posted By stas3
Re: a few questions (CS:S)

Question about PrintToChat resolved.
Forum: Scripting 07-07-2011, 19:41
Replies: 17
Views: 3,646
Posted By stas3
Re: a few questions (CS:S)

Why PrintToChat sends the same message twice? (and PrintToChatAll). And I have not found the normal commands to work with indices of objects. For example, I need to remove all weapons from the...
Forum: Scripting 07-06-2011, 19:01
Replies: 17
Views: 3,646
Posted By stas3
Re: a few questions (CS:S)

#include <sourcemod>

new var[MAXPLAYERS + 1];

public OnPluginStart()
{
HookEvent("player_spawn", PlayerSpawn);
}

public Action:PlayerSpawn(Handle:event, const String:name[],...
Forum: Scripting 07-05-2011, 15:17
Replies: 17
Views: 3,646
Posted By stas3
Re: a few questions (CS:S)

Thanks, I'll experiment.
Forum: Scripting 07-05-2011, 14:01
Replies: 17
Views: 3,646
Posted By stas3
Re: a few questions (CS:S)

Thanks, I understand. How about the other issues? And one more thing that bothers me. Array stores the data of one type, but what if I need to store multiple values for the players (as a dictionary...
Forum: Scripting 07-05-2011, 07:03
Replies: 17
Views: 3,646
Posted By stas3
a few questions (CS:S)

I started studying SourcePawn and I am having some issues:

1.

There are global variables: MAX_NAME_LENGTH, MaxClients, MAX_TARGET_LENGTH, MAXPLAYERS .. What is more? Where is their list?

2....
Showing results 1 to 21 of 21

 
Forum Jump

All times are GMT -4. The time now is 15:27.


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