Raised This Month: $285 Target: $400
 71% 

Showing results 1 to 16 of 16
Search took 0.00 seconds.
Search: Posts Made By: Ravrob
Forum: Scripting 07-16-2020, 06:24
Replies: 3
Views: 405
Posted By Ravrob
Re: [TF2] OnTakeDamage damage value help

Oh, duh. You were absolutely correct I feel silly having missed that, thank you! Although oddly enough I wasn't getting a tag mismatch.. not sure why that is.
Forum: Scripting 07-15-2020, 20:32
Replies: 3
Views: 405
Posted By Ravrob
[TF2] OnTakeDamage damage value help

I'm trying to create a script that will allow players to leech health under certain conditions and what I wrote does that just fine, only if you call the damage parameter it'll return some huge...
Forum: Scripting 07-09-2020, 04:11
Replies: 6
Views: 466
Posted By Ravrob
Re: [TF2] Getting Uber Value and Setting Uber Value

I hadn't seen your edit about changing float to int, and that was the exact problem! You must've made the edit while I was preparing my reply. The code works perfectly now thank you very much! :D
Forum: Scripting 07-09-2020, 01:51
Replies: 6
Views: 466
Posted By Ravrob
Re: [TF2] Getting Uber Value and Setting Uber Value

Those numbers aren't necessarily the issue, I'm using this to check what the actual float is and for some reason it keeps coming out 0.
PrintToChatAll("You have %f charge.", uberAmount);
I also...
Forum: Scripting 07-09-2020, 00:01
Replies: 6
Views: 466
Posted By Ravrob
Re: [TF2] Getting Uber Value and Setting Uber Value

I had actually tried these stocks earlier to no avail, I was making mistakes converting them to new syntax but I figured it out this time. :roll: So it compiles now, only nothing is happening now,...
Forum: Scripting 07-08-2020, 20:00
Replies: 6
Views: 466
Posted By Ravrob
[TF2] Getting Uber Value and Setting Uber Value

Sincerest apologies if I'm posting too much, I promise I've tried to troubleshoot on my own! :|
So, essentially what this code does is it finds a random dead player and respawns them at a player...
Forum: Scripting 07-08-2020, 01:59
Replies: 10
Views: 485
Posted By Ravrob
Re: Random Player Help

Thanks for all the help! It's choosing random people exactly as I wanted it's just not working with certain functions for some reason. Either way for the most part it does what I want so thanks again...
Forum: Scripting 07-08-2020, 01:14
Replies: 10
Views: 485
Posted By Ravrob
Re: Random Player Help

I figured out that error was because I was using MAXPLAYERS in the for statement rather than MaxClients, oops! The last thing I'm not so sure about is how to call the function, could I just do...
Forum: Scripting 07-08-2020, 00:29
Replies: 10
Views: 485
Posted By Ravrob
Re: Random Player Help

It compiled just fine using MAXPLAYERS but unfortunately now I'm getting an error on the server console which I'm pretty sure is related to MAXPLAYERS where the console is telling me over and over...
Forum: Scripting 07-07-2020, 22:56
Replies: 10
Views: 485
Posted By Ravrob
Re: Random Player Help

I believe it's compiled on 1.9.
Forum: Scripting 07-07-2020, 22:40
Replies: 10
Views: 485
Posted By Ravrob
Re: Random Player Help

So when I use
int clients[];
It outputs these two errors:
error 036: empty statement
error 009: invalid array size (negative, zero or out of bounds)
and creates a whole gaggle of errors in ...
Forum: Scripting 07-07-2020, 22:11
Replies: 10
Views: 485
Posted By Ravrob
Random Player Help

So I've been trying to choose a random player using
stock Action GetRandomPlayer()
{
int clients[MaxClients + 1];
int clientCount;
for (int i = 1; i <= MaxClients; i++)
{
if...
Forum: Scripting 07-05-2020, 22:21
Replies: 3
Views: 369
Posted By Ravrob
Re: Button Press Detection Issues

That worked just fine! Thanks for your help :D I was confused about using OnPlayerRunCmd and you really cleared it up for me. I totally understand why I shouldn't have been using OnGameFrame in that...
Forum: Scripting 07-05-2020, 06:45
Replies: 3
Views: 369
Posted By Ravrob
Button Press Detection Issues

So as far as button detection goes, the only two ways I've really found of doing it is through OnPlayerRunCmd and GetEntProp, I'm using GetEntProp in this instance and I want it to do an action when...
Forum: Scripting 07-04-2020, 03:36
Replies: 2
Views: 359
Posted By Ravrob
Re: [TF2] Medic Script Help

Thank you so much! :) This worked perfectly, I had no idea Sourcemod had a OnGameFrame function that is very useful. I really appreciate your help and advice!
Forum: Scripting 07-03-2020, 23:06
Replies: 2
Views: 359
Posted By Ravrob
[TF2] Medic Script Help

I'm fairly new to programming as a whole and I'm slowly starting to understand this so I apologize in advance if I don't understand. To sum up what I'm trying to accomplish here, I'm trying to...
Showing results 1 to 16 of 16

 
Forum Jump

All times are GMT -4. The time now is 10:56.


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