Raised This Month: $13 Target: $400
 3% 

Showing results 1 to 11 of 11
Search took 0.00 seconds.
Search: Posts Made By: Tilex
Forum: Scripting 05-30-2020, 09:31
Replies: 4
Views: 329
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: 198
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: 362
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: 352
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: 500
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: 352
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: 342
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: 400
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: 267
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: 198
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: 541
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 15:54.


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