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

Showing results 1 to 11 of 11
Search took 0.01 seconds.
Search: Posts Made By: Tilex
Forum: Scripting 05-30-2020, 09:31
Replies: 4
Views: 1,417
Posted By Tilex
Re: Check if player is within entity range.

Hey there,

I haven't worked with props before, but I think you shouldn't be creating a prop with a name, if you are looking for a prop that already exists. Not sure, how the function deals with...
Forum: Scripting 05-30-2020, 05:55
Replies: 2
Views: 688
Posted By Tilex
Re: entity_prop_stocks binds

"IN_ALT1 & IN_ALT2"
I'd say these are the left and the right ALT keys. Combining them with "&" actually lets you check if both are pressed at the same time. Not sure if that is actually useful in...
Forum: Scripting 05-29-2020, 20:38
Replies: 5
Views: 1,076
Posted By Tilex
Re: Timers: Wiki misunderstanding

You are working with defines/enums, which are defined in sourcemod\scripting\include\core.inc

/**
* Specifies what to do after a hook completes.
*/
enum Action
{
Plugin_Continue = 0, ...
Forum: Scripting 05-29-2020, 20:22
Replies: 6
Views: 939
Posted By Tilex
Re: Edit script

I get what you describe there and I'd expect some code, which goes like:

PrintToChat(client, "[%s], your rank has been reset", myinfo.name");


But maybe it's just hardcoded into the chat...
Forum: Scripting 05-29-2020, 20:17
Replies: 6
Views: 1,604
Posted By Tilex
Re: error 001: expected token: "(", but found "{"

why not simply

float fTest[ 3 ] = { 0.0, 0.0, 0.0 };

or

float fTest[3];
fTest[0] = 0.0;
fTest[1] = 0.0;
fTest[2] = 0.0;
Forum: Scripting 05-26-2020, 12:16
Replies: 6
Views: 939
Posted By Tilex
Re: Edit script

The plugin has some code like..


public Plugin myinfo =
{
name = "nameOfMyScript",
author = PLUGIN_AUTHOR,
description = "My script does this and that.",
version = PLUGIN_VERSION,
url...
Forum: Scripting 05-25-2020, 19:17
Replies: 6
Views: 1,058
Posted By Tilex
Re: [ISSUE] Not storing all strings

public Action foo
{
for (int i = 0; i < sizeof(BadWord); i++)
{
bar;
bar:
bar;


return Plugin_Handled;
Forum: Scripting 05-25-2020, 19:05
Replies: 10
Views: 2,046
Posted By Tilex
Re: [TF2] mvm_mission_complete event not firing

Maybe you want to check your mvm_complete to match the proper protoype for MsgHook:
https://sm.alliedmods.net/new-api/usermessages/MsgHook
Though, I'm not sure which one of the two ist the right...
Forum: Scripting 05-24-2020, 08:11
Replies: 1
Views: 782
Posted By Tilex
Re: Timer for HookEvent

pretty basic one-shot timer:
(see: https://wiki.alliedmods.net/Timers_(SourceMod_Scripting) )


public Action:Event_MissionComplete(Handle:event, const String:mission[], bool:dontBroadcast)
{
...
Forum: Scripting 05-24-2020, 07:59
Replies: 2
Views: 730
Posted By Tilex
Re: Equiping weapons and checking player iventory

I just came across this: http://gshbitbucket.mydan.de/projects/GSH/repos/gsh-csgo-duels/browse/addons/sourcemod/scripting/1v1dm/1v1_AWPDuel.sp

Not really answering the whole question, but it...
Forum: Scripting 05-24-2020, 07:04
Replies: 11
Views: 3,612
Posted By Tilex
Re: fatal error 186: insufficient memory

https://wiki.alliedmods.net/Creating_Natives_(SourceMod_Scripting)
So, from what I get here, you are working with two scripts. One is creating a Native to be used from the other. The one defining...
Showing results 1 to 11 of 11

 
Forum Jump

All times are GMT -4. The time now is 08:47.


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