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

Showing results 1 to 25 of 81
Search took 0.01 seconds.
Search: Posts Made By: =MaTi=
Forum: Scripting 11-06-2013, 13:38
Replies: 0
Views: 483
Posted By =MaTi=
SetEntPropString fails

I have a weird problem with SetEntPropString. Here is what I'm trying to do:


GetEntPropString(edict, Prop_Data, "m_szAmmoName", buf, sizeof(buf)); // works
PrintToChatAll("Name: %s", buf);...
Forum: Scripting 02-13-2010, 10:50
Replies: 1
Views: 924
Posted By =MaTi=
[L4D2] Find gamemode

In Left 4 Dead 1 we could just simply read mp_gamemode to get the server's gamemode (coop, versus, scavegne etc.). In Left 4 Dead 2 however, this command has been removed. Is there any other way to...
Forum: Unapproved Plugins 02-10-2010, 08:47
Replies: 23
Views: 42,038
Posted By =MaTi=
Re: [L4D2] No Special Infected

Soloing Survival mode or infinite panic event. And I am sure that people would find more :wink:

Anyway, yes, the plugin was originally intended for campaign or survival mode, where there's no...
Forum: Unapproved Plugins 02-09-2010, 20:57
Replies: 23
Views: 42,038
Posted By =MaTi=
[L4D2] No Special Infected

[L4D2] No Special Infected

Description:
Small and simple. This plugin allows you to prevent Special Infected from spawning and/or remove all existing Special Infected from the map. Although some...
Forum: Scripting 02-03-2010, 16:32
Replies: 3
Views: 1,508
Posted By =MaTi=
Re: Converting Integer to Natural number

new difference;

if(X > Y)
{
difference = X - Y;
}
else
{
difference = Y - X;
}
Forum: Scripting 02-03-2010, 14:35
Replies: 7
Views: 3,352
Posted By =MaTi=
Re: [TF2] Fading the screen slightly darker

I remember when I needed something similar, and I wasn't sure how to do this. Could somebody please explain these two parts?

BfWriteShort(message, 1536);What does 1536 stand for?

Also:
...
Forum: Scripting 02-03-2010, 14:10
Replies: 10
Views: 2,230
Posted By =MaTi=
Re: It is necessary to save parametre for the player for the period of session

Here is an example code, that accumulates all damage that a player recieved throughout the game. Remember, that OnClientDisconnect is called for every client on map change as well.

#include...
Forum: Scripting 02-03-2010, 12:25
Replies: 10
Views: 2,230
Posted By =MaTi=
Re: It is necessary to save parametre for the player for the period of session

If I understand correctly, you want to assign a value to one of variables when a client connects to the server. The value would be changing as long as the client is in game, and when the client...
Forum: Scripting 02-01-2010, 22:11
Replies: 2
Views: 996
Posted By =MaTi=
Re: Entity coordinates?

GetEntPropVector (http://docs.sourcemod.net/api/index.php?fastload=show&id=87&%3Cbr%20/%3E)

Example:

new Float:Pos[3];
GetEntPropVector(edict, Prop_Send, "m_vecOrigin", Pos);
Forum: Scripting 02-01-2010, 11:51
Replies: 2
Views: 937
Posted By =MaTi=
Re: Problem with my first script

You need to use events:

How to use events (http://wiki.alliedmods.net/Events_%28SourceMod_Scripting%29)
DOD:S win event (http://wiki.alliedmods.net/Day_of_Defeat:_Source_Events#dod_round_win)
Forum: Scripting 01-30-2010, 19:43
Replies: 12
Views: 5,150
Posted By =MaTi=
Re: (Solved) GetClientAbsAngles problem

This should work, as long as you have the alternative fire bound to mouse2 button, which is like that by default:


public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3],...
Forum: Scripting 01-29-2010, 18:37
Replies: 5
Views: 1,455
Posted By =MaTi=
Re: access the funcommands

This is what you need: http://docs.sourcemod.net/api/index.php?fastload=show&id=454&
Forum: Scripting 01-29-2010, 18:32
Replies: 10
Views: 4,027
Posted By =MaTi=
Re: Create Prop at Coordinates

I had similar problem some time ago, check out this link:
http://forums.alliedmods.net/showthread.php?t=102638
Forum: Scripting 01-28-2010, 07:31
Replies: 5
Views: 2,242
Posted By =MaTi=
Re: SourceMod Framework?

Right-click on "Team Fortress 2 Dedicated Server", click on "Set launch options" and put in:

-console -game tf +sv_lan 1 +map koth_sawmill

You can change the startup settings to your liking. I...
Forum: Scripting 01-23-2010, 18:33
Replies: 1
Views: 838
Posted By =MaTi=
Re: Change Cvar for specific person depending on what gun they are using

The only thing that comes to my mind, is using SDKHook_WeaponSwitch from SDKHooks (http://forums.alliedmods.net/showthread.php?t=106748). Just detect what weapon client is trying to switch to, and...
Forum: Scripting 01-20-2010, 05:27
Replies: 13
Views: 166,771
Posted By =MaTi=
Re: Yak's FAQs on Scripting

#4 needs to be updated to use AddCommandListener ;)
Forum: Scripting 01-18-2010, 16:02
Replies: 5
Views: 1,664
Posted By =MaTi=
Re: Client commands!

Oh, I didn't know about that. Thanks!
Forum: Scripting 01-18-2010, 14:52
Replies: 5
Views: 1,664
Posted By =MaTi=
Re: Client commands!

So... You want the command to be usable by admins? If so, this code should work. I haven't tested it though.

public OnPluginStart()
{
RegConsoleCmd("say", Command_Say);
}

public...
Forum: Scripting 01-17-2010, 12:47
Replies: 16
Views: 3,724
Posted By =MaTi=
Re: help, damage_dods round end & SendPanelToClient()

You can use a loop to browse through all the players.


public OnPluginStart()
{
HookEvent("dod_round_win",RoundWinEvent);
}

public RoundWinEvent(Handle:event, const String:name[],...
Forum: Scripting 01-17-2010, 02:34
Replies: 6
Views: 1,755
Posted By =MaTi=
Re: Help with my script!Need to fix a 217 loose identation error

For SourcePawn scripting I recommend PawnStudio. But it's a matter of preference. :wink:
Forum: Scripting 01-16-2010, 22:00
Replies: 16
Views: 3,724
Posted By =MaTi=
Re: help, damage_dods round end & SendPanelToClient()

Here you have all the events for DOD:S http://wiki.alliedmods.net/Day_of_Defeat:_Source_Events

For round end, I would suggest using dod_round_win ...
Forum: Scripting 01-16-2010, 21:55
Replies: 6
Views: 1,755
Posted By =MaTi=
Re: Help with my script!Need to fix a 217 loose identation error

In this case I don't think it matters that it isn't in amxx section ;)

What rhelgeby is trying to say, is that you need to use the same amount of tabs or spaces to indent your code, and never mix...
Forum: Scripting 01-15-2010, 20:36
Replies: 7
Views: 1,767
Posted By =MaTi=
Re: One time Timer

They do. Just kill them at the end of each round.

EDIT: If player can respawn before the end of the round, you should also kill the timer when he dies.
Forum: Scripting 01-15-2010, 16:55
Replies: 7
Views: 2,381
Posted By =MaTi=
Re: No Block at spawn

g_offsCollisionGroup = FindSendPropOffs("CBaseEntity", "m_CollisionGroup");
new DefaultCollisionGroup = GetEntData(entity, g_offsCollisionGroup);
SetEntData(entity, g_offsCollisionGroup, 2, 4,...
Forum: Scripting 01-15-2010, 16:42
Replies: 7
Views: 2,381
Posted By =MaTi=
Re: No Block at spawn

Use GetEntData to find the value of g_offsCollisionGroup before changing it with SetEntData. When you want to turn collision back on, set g_offsCollisionGroup back to it's default value.
Showing results 1 to 25 of 81

 
Forum Jump

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


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