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

Showing results 1 to 25 of 26
Search took 0.00 seconds.
Search: Posts Made By: JoaoRodrigoGamer
Forum: Plugins 06-03-2021, 05:17
Replies: 2
Views: 3,435
Posted By JoaoRodrigoGamer
Re: The exitback button acts the same as a exitbutton

Please continue this discussion on the GitHub Issue.
Forum: Unapproved Plugins 09-01-2019, 08:01
Replies: 0
Views: 2,391
Posted By JoaoRodrigoGamer
[CS:GO] MoreVIPFeatures

Download (https://github.com/JoaoRodrigoGoncalves/MoreVIPFeatures)

MoreVIPFeatues, a compact plugin with more features for VIP players!

With this plugin, you can customize almost everything....
Forum: Scripting 08-25-2019, 14:16
Replies: 4
Views: 1,769
Posted By JoaoRodrigoGamer
Re: [CS:GO] Dynamic permissions with convar

That is a good solution but I would really like to make that the flag config for this plugin didn't require to change stuff on the sourcemod config files. I realize that it is the best solution and...
Forum: Scripting 08-25-2019, 14:11
Replies: 4
Views: 1,769
Posted By JoaoRodrigoGamer
Re: [CS:GO] Dynamic permissions with convar

I did that lazy thing of writing to console in every if statement to check where it was registering the commands and it is still registered with the "o" flag even though the ConVar output (when I...
Forum: Scripting 08-24-2019, 06:17
Replies: 4
Views: 1,769
Posted By JoaoRodrigoGamer
[CS:GO] Dynamic permissions with convar

So, I was trying to make a "modular" plugin on which you could go to the config file on /cfg/sourcemod/MoreVIPFeatures.cfg and change the flag needed to execute certain commands. I came up with this...
Forum: Scripting 08-23-2019, 07:09
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

Yeah, your code works just fine :)

Thank you all for your help!
Forum: Scripting 08-23-2019, 06:57
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

I just tested your code with this plugin and it seems to be working just fine

Also, I used this simple plugin to test your code:

#pragma semicolon 1

#define DEBUG

#define PLUGIN_AUTHOR ""...
Forum: Scripting 08-23-2019, 06:15
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

Can you please explain how that code works and how can it be applied to, for example, find if the player has a health shot?
Forum: Scripting 08-23-2019, 06:13
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

Unfortunately, the code did not change anything.


僕の kill‎ : !test
[DEBUG] User weapon weapon_glock , weapon to check for : weapon_healthshot
[DEBUG] User weapon weapon_knife , weapon to check...
Forum: Scripting 08-23-2019, 05:20
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

On the chat debug it does not show the c4 but it takes and then gives it back to the player.

The health shot is not in the c4 slot but below it (see attachment).


僕の kill‎ : !test
[DEBUG]...
Forum: Scripting 08-23-2019, 04:22
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

This time it is almost working. The server didn't crash and I got almost all items back after running the command.

chat debug:


僕の kill‎ : !test
[DEBUG] User weapon weapon_hkp2000 , weapon to...
Forum: Scripting 08-23-2019, 03:15
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

That code crashes the server...


Exception reported: World not allowed
L 08/23/2019 - 08:06:23: [SM] Blaming: inventoryCheck.smx
L 08/23/2019 - 08:06:23: [SM] Call stack trace:
L 08/23/2019 -...
Forum: Scripting 08-22-2019, 11:20
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

I copied the code you wrote to a new script, disabled the plugin in which I was working, and added the following code at the end of the file:

public void OnPlayerSpawn(Handle event, const char[]...
Forum: Scripting 08-22-2019, 10:20
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

Sorry, I forgot to upload the chat log. Here it is:

EDIT: Now that I look to the debug again, it does not even go through the grenades on the PrintToChat() @ stock bool WeaponsClientHasWeapon(int...
Forum: Scripting 08-22-2019, 10:06
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

I updated the code of stock bool WeaponsClientHasWeapon(int client, const char weapon[32]) with that new debug version you posted and added the command sm_test:


public Action test(int client,...
Forum: Scripting 08-22-2019, 08:56
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

So, I changed stock bool WeaponsClientHasWeapon(int client, const char weapon[32]) to

stock bool WeaponsClientHasWeapon(int client, const char weapon[32])
{
// Get all of client's current...
Forum: Scripting 08-22-2019, 08:11
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

It always returns that I do not have a dealge. Even when I've got one from the round before.
Forum: Scripting 08-22-2019, 07:43
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

It compiled with no errors, but when I check if the player has a health shot, it returns true.


if(!WeaponsClientHasWeapon(client, "weapon_healthshot"))
{
GivePlayerItem(client,...
Forum: Scripting 08-22-2019, 06:12
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
Re: [CSGO] Fetch client's weapons, grenades, etc...

I'm trying to convert that to the new syntax but with no success... Do you know where can I find a version adapted to the new syntax?
Forum: Scripting 08-22-2019, 05:01
Replies: 28
Views: 6,003
Posted By JoaoRodrigoGamer
[CSGO] Fetch client's weapons, grenades, etc...

I've been trying to write a plugin that gives weapons, grenades, etc. to players.
Until now, everything is working fine. I can give the items to client's and they get them. The problem is that in...
Forum: Plugins 07-22-2019, 15:22
Replies: 2
Views: 3,435
Posted By JoaoRodrigoGamer
Server Commands

Description
Adds a fully customizable menu with commands for the players.

How to install / configure?
Well, that's easy. Download them from my Github...
Forum: Scripting 07-22-2019, 08:56
Replies: 8
Views: 4,358
Posted By JoaoRodrigoGamer
Re: [CS:GO] trying to give heath per kill

That makes sense. Thanks for the help everyone!
Forum: Scripting 07-22-2019, 08:30
Replies: 8
Views: 4,358
Posted By JoaoRodrigoGamer
Re: [CS:GO] trying to give heath per kill

That worked!
Can you explain or link to anything that explains the difference of behavior of the HookEvent() in the OnPluginStart vs. OnClientPutInServer?
Forum: Scripting 07-22-2019, 07:29
Replies: 8
Views: 4,358
Posted By JoaoRodrigoGamer
Re: [CS:GO] trying to give heath per kill

Probably I didn't explain myself to well.

When I was testing the code, I killed one single enemy but instead of getting +10HP it looks like it was regenerating. That console output was for killing...
Forum: Scripting 07-22-2019, 04:51
Replies: 8
Views: 4,358
Posted By JoaoRodrigoGamer
Re: [CS:GO] trying to give heath per kill

thx, I had forgotten to hook the player death.
Now I can detect when the victim dies, but instead of giving +10HP it is giving +30, +40...


public OnClientPutInServer(client)
{...
Showing results 1 to 25 of 26

 
Forum Jump

All times are GMT -4. The time now is 05:29.


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