Raised This Month: $ Target: $400
 0% 

Showing results 1 to 18 of 18
Search took 0.01 seconds.
Search: Posts Made By: RSTFS
Forum: Scripting 02-23-2016, 22:53
Replies: 1
Views: 1,073
Posted By RSTFS
OnClientAuthorized issue

This page (https://sm.alliedmods.net/new-api/clients/OnClientAuthorized) says that this forward should pass "BOT" to auth when a bot joins the game, so why doesn't the following code work?

...
Forum: Scripting 02-18-2016, 22:39
Replies: 7
Views: 1,915
Posted By RSTFS
Re: Controlling a bot's keys.

How could you override a bot's logic?
Forum: Scripting 02-18-2016, 16:58
Replies: 7
Views: 1,915
Posted By RSTFS
Re: Controlling a bot's keys.

I'm using CreateFakeClient(), what bot command are you talking about though? I don't know of one (I'm developing for css btw).

Edit: I think you mean tf_bot_add. I'm unable to find a css...
Forum: Scripting 02-17-2016, 21:50
Replies: 7
Views: 1,915
Posted By RSTFS
Re: Controlling a bot's keys.

I've read that OnPlayerRunCmd get's called every frame by I've never seen it behave that way. It seems like it only get's called when a player is already giving input, and that's how it's acting when...
Forum: Scripting 02-16-2016, 23:12
Replies: 7
Views: 1,915
Posted By RSTFS
Controlling a bot's keys.

Is it possible to control a bot's input keys and look angles? Is that even how bots deal with movement?
Forum: Scripting 02-16-2016, 00:37
Replies: 7
Views: 2,064
Posted By RSTFS
Re: [CSS] Client index problem

Not for my needs. I didn't realized I had insecure twice though :^0 And as far as I know, tickrate is still needed if you are using the tickrate enabler plugin.
Forum: Scripting 02-14-2016, 17:06
Replies: 7
Views: 2,064
Posted By RSTFS
Re: [CSS] Client index problem

I was having this problem yesterday too. Other people on the server were not experiencing the problem. I had started css with these launch args:

hl2.exe -game cstrike -insecure +sv_cheats 1...
Forum: Scripting 02-14-2016, 16:17
Replies: 2
Views: 2,349
Posted By RSTFS
What is PreThink?

I know it's a hook type in sdkhooks but I have no idea what it's for or when to use it or what a "think" is, and I've searched as much as I can.
Forum: Scripting 02-01-2016, 19:36
Replies: 3
Views: 1,395
Posted By RSTFS
Maxplayers + 1?

I've noticed in a lot of plugins that store some sort of data for every player on the server that they use MAXPLAYERS + 1. Why is MAXPLAYERS not enough?

Edit: nevermind I found the answer here:...
Forum: Scripting 01-31-2016, 00:17
Replies: 0
Views: 486
Posted By RSTFS
Blocking temp ents?

I'm trying to block blood splatters (TE name Blood Sprite) in css, and I found a thread suggesting that only returning Plugin_Stop in a temp ent hook's callback function would block it, but this...
Forum: Scripting 01-17-2016, 14:34
Replies: 5
Views: 1,538
Posted By RSTFS
Re: Overriding other plugin commands?

Doesn't appear to behave any differently than what I've already tried. I need to completely block what the other plugin is trying to do, and do something else instead.
Forum: Scripting 01-17-2016, 12:41
Replies: 5
Views: 1,538
Posted By RSTFS
Overriding other plugin commands?

I've been messing around trying to achieve this, but I haven't been able to. I know that you can easily hook into another plugin's command by using RegConsoleCmd(), but I don't think you can block...
Forum: Scripting 01-14-2016, 17:41
Replies: 3
Views: 824
Posted By RSTFS
Forum: Scripting 01-14-2016, 17:05
Replies: 3
Views: 824
Posted By RSTFS
Removing weapon edict causing edict count issues.

Whenever I remove a weapon's edict, even after using RemovePlayerItem() on that weapon, the edict count on the server goes down by two instead of one. I think it has to do with the predicted view...
Forum: Scripting 01-12-2016, 19:50
Replies: 4
Views: 643
Posted By RSTFS
Re: Command registration not always working.

Ah, trying to remove something from an already empty item slot breaks things, I should have caught that.
Forum: Scripting 01-12-2016, 19:18
Replies: 4
Views: 643
Posted By RSTFS
Command registration not always working.

I accidentally posted this in the wrong section, and after 3 days it still hasn't been moved/deleted so I'm posting it again.
This code works, it just gives a glock to a player:
public void...
Forum: Scripting Help 01-09-2016, 16:15
Replies: 3
Views: 662
Posted By RSTFS
Re: Console command registration not working.

Whoops, I don't see a way to delete this post though.
Forum: Scripting Help 01-09-2016, 10:20
Replies: 3
Views: 662
Posted By RSTFS
Console command registration not working.

This code works:
public void OnPluginStart(){
RegConsoleCmd("sm_glock", GiveGlock);
}

public Action GiveGlock(int client, int args){
if(IsPlayerAlive(client)){
GivePlayerItem(client,...
Showing results 1 to 18 of 18

 
Forum Jump

All times are GMT -4. The time now is 09:21.


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