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

Showing results 1 to 25 of 45
Search took 0.01 seconds.
Search: Posts Made By: ShD3luxe
Forum: Plugins 12-06-2020, 18:49
Replies: 9
Views: 9,064
Posted By ShD3luxe
Re: [CSGO] Block Chat Wheel

It's there a way to create a custom wheel ? Maybe with protobuf ?
I could not find the user message here: https://wiki.alliedmods.net/Counter-Strike:_Global_Offensive_UserMessages .

Thanks for...
Forum: Plugins 05-01-2020, 19:57
Replies: 8
Views: 4,796
Posted By ShD3luxe
Re: [CSGO] Donate System (Like Twitch) (ZephStore)

No, people can donate shop points to each others.

Afaik the Store_SetClientCredits is from warden.inc, you can change those lines with your server currency.


Store_SetClientCredits(client,...
Forum: Plugins 05-01-2020, 15:45
Replies: 8
Views: 4,796
Posted By ShD3luxe
Re: [CSGO] Donate System (Like Twitch) (ZephStore)

It was just an advice for future changes. Good job for making something free for others . :bacon!:
Forum: Plugins 04-28-2020, 20:51
Replies: 8
Views: 4,796
Posted By ShD3luxe
Re: [CSGO] Donate System (Like Twitch) (ZephStore)

Instead of using the else if syntax you can use a loop, makes the code more clear and easier to read.

An example:

char SOUNDS_PACK[][] = {
"",
"TurkModders/Donate/ses_1.mp3",...
Forum: Scripting 09-14-2019, 14:18
Replies: 3
Views: 2,504
Posted By ShD3luxe
Re: Datapack out of bounds

Try like this

public void function()
{
for (int i = 0; i < NUM_EXPLOSIONS; i++)
{
DataPack dp_ShotPack = new DataPack();
for(int ind = 0;ind < sizeof(f_vCoords);ind++)...
Forum: Scripting 09-09-2019, 15:26
Replies: 11
Views: 3,035
Posted By ShD3luxe
Re: [HELP] Get All Cmd Args

You can try like this :

int iargs = GetCmdArgs();
char phrase[128],argPhrase[24];
for(int i = 1;i <= iargs;i++)
{
GetCmdArg(i,argPhrase,sizeof(argPhrase));...
Forum: Scripting 08-24-2019, 14:10
Replies: 13
Views: 2,665
Posted By ShD3luxe
Re: Problem MySQL T_LoadData

Just change the disconnect function to :

public void OnClientDisconnect(int client)
{
if(!IsFakeClient(client) && g_Database != null)
{
char query[256], steamid[32];...
Forum: Scripting 08-23-2019, 12:14
Replies: 12
Views: 2,586
Posted By ShD3luxe
Re: Invisible knife in TT

That is amxmodx code ... you posted in the wrong section.
Forum: Scripting 08-23-2019, 08:42
Replies: 12
Views: 2,586
Posted By ShD3luxe
Re: Invisible knife in TT

https://developer.valvesoftware.com/wiki/Category:Entities here are all entities from valve you can find all the inputs in the Inputs section of each entity. There are not many stuff to explain you...
Forum: Scripting 08-23-2019, 08:14
Replies: 12
Views: 2,586
Posted By ShD3luxe
Re: Invisible knife in TT

RemovePlayerItem will remove the weapon from the player but the entity will still exist. -> https://sm.alliedmods.net/new-api/sdktools_functions/RemovePlayerItem ( the wiki is not really specific...
Forum: Scripting 08-23-2019, 07:43
Replies: 12
Views: 2,586
Posted By ShD3luxe
Re: Invisible knife in TT

RemovePlayerItem will detach the item from the player you need to kill the entity too , also 1 is secondary and 2 is melee.

int weaponIndex = GetPlayerWeaponSlot(client, 2);
if(weaponIndex != -1)...
Forum: Scripting 08-23-2019, 06:14
Replies: 28
Views: 5,857
Posted By ShD3luxe
Re: [CSGO] Fetch client's weapons, grenades, etc...

Will this return all the weapons even if the player has more than one in one slot ?

Also this as a function :

stock bool ClientHasWeapon(int client, const char weapon[32])
{
int size =...
Forum: Plugin/Gameplay Ideas and Requests 08-23-2019, 06:02
Replies: 3
Views: 1,620
Posted By ShD3luxe
Re: [CSGO] Request help/plugin with damage through teammates

You can try to draw a ray from the attacker and check if there is any teammate and enemy in front of him when the OnTakeDamage event is triggered and if there is increase the damage manually for the...
Forum: Scripting 08-23-2019, 05:38
Replies: 28
Views: 5,857
Posted By ShD3luxe
Re: [CSGO] Fetch client's weapons, grenades, etc...

Try changing it to this :

#define WEAPONS_SLOTS_MAX 6 // from 5 to 6

enum WeaponsSlot
{
Slot_Invalid = -1, /** Invalid weapon (slot). */
Slot_Primary = 0, /**...
Forum: Scripting 08-23-2019, 04:42
Replies: 28
Views: 5,857
Posted By ShD3luxe
Re: [CSGO] Fetch client's weapons, grenades, etc...

It looks like now it's listing all the weapons except for the healthshot . In what slot do you have the healthshot ? It should be on the 5 (the c4 slot). Try checking if the debug command is showing...
Forum: Scripting 08-23-2019, 03:54
Replies: 28
Views: 5,857
Posted By ShD3luxe
Re: [CSGO] Fetch client's weapons, grenades, etc...

Oh my bad it seems that the array is initialized with 0 and the 0 index is the world index ( and u can't create a weapon with that index ).
Here

#include <sourcemod>
#include <sdktools>
...
Forum: Scripting 08-22-2019, 19:00
Replies: 28
Views: 5,857
Posted By ShD3luxe
Re: [CSGO] Fetch client's weapons, grenades, etc...

AFAIK, is not getting the second weapon if there is already one in the slot.
A solution is to save it in the weapons array,delete that weapon ,check the slot again and after we are done with...
Forum: Scripting 08-22-2019, 10:54
Replies: 28
Views: 5,857
Posted By ShD3luxe
Re: [CSGO] Fetch client's weapons, grenades, etc...

I think that the problem is that you have the taser and the knife on the same slot and the GetPlayerWeaponSlot functions will only return the first weapon on that slot.That's why is only returning...
Forum: Scripting 08-22-2019, 10:12
Replies: 28
Views: 5,857
Posted By ShD3luxe
Re: [CSGO] Fetch client's weapons, grenades, etc...

And what is the output for the print debug ? Is the teaser weapon or something with that name in the player's inventory ?
Forum: Scripting 08-22-2019, 10:00
Replies: 10
Views: 3,150
Posted By ShD3luxe
Re: Zephyrus's store refresh client inventory

Exactly.But you don't need to include the inc file in the store plugin just in your plugin. Also do the steps Devil mentioned when you use those natives in your plugin .

1. Call...
Forum: Scripting 08-22-2019, 09:29
Replies: 10
Views: 3,150
Posted By ShD3luxe
Re: Zephyrus's store refresh client inventory

You can do in the plugin u want to use the natives(if you don't have an inc file or you just don't want to create one) :

native Store_ForceSaveClientData(client);
native...
Forum: Scripting 08-22-2019, 09:13
Replies: 28
Views: 5,857
Posted By ShD3luxe
Re: [CSGO] Fetch client's weapons, grenades, etc...

The weapon_teaser should be in the knife slot and the weapon_healthshot should be in the C4 slot.
Try printing the debug message like this to see if it detects those weapons(healthshot & teaser)...
Forum: Scripting 08-22-2019, 08:17
Replies: 28
Views: 5,857
Posted By ShD3luxe
Re: [CSGO] Fetch client's weapons, grenades, etc...

Try putting a debug message in the WeaponsClientHasWeapons

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

Try checking for another weapon and use a print message to see what is the output.

if(!WeaponsClientHasWeapon(client, "weapon_deagle"))
{
PrintToChat(client,"[DEBUG] You don't have a...
Forum: Scripting 08-22-2019, 06:31
Replies: 28
Views: 5,857
Posted By ShD3luxe
Re: [CSGO] Fetch client's weapons, grenades, etc...

Here , I modified the code with the new syntax.

#include <sourcemod>
#include <sdktools>

#pragma newdecls required
#define WEAPONS_MAX_LENGTH 32
#define WEAPONS_SLOTS_MAX 5

enum...
Showing results 1 to 25 of 45

 
Forum Jump

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


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