Raised This Month: $84 Target: $400
 21% 

Showing results 1 to 25 of 41
Search took 0.01 seconds.
Search: Posts Made By: ShD3luxe
Forum: Scripting Yesterday, 14:18
Replies: 1
Views: 89
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: 495
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: 884
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: 797
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: 797
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: 797
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: 797
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: 975
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: 392
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: 975
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: 975
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: 975
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: 975
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: 975
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: 975
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: 1,126
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: 1,126
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: 975
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: 975
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: 975
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: 975
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...
Forum: Scripting 08-22-2019, 05:42
Replies: 13
Views: 884
Posted By ShD3luxe
Re: Problem MySQL T_LoadData

For a simple non-threaded database I prefer FastQuery , in his example mixing both might be a bad idea but that's a solution too .
Forum: Scripting 08-22-2019, 05:25
Replies: 28
Views: 975
Posted By ShD3luxe
Re: [CSGO] Fetch client's weapons, grenades, etc...

From the Zombie Reloaded api :

/**
* General weapon API.
*/

/**
* Maximum length of a weapon name string
*/
#define WEAPONS_MAX_LENGTH 32
Forum: Scripting 08-21-2019, 22:48
Replies: 0
Views: 593
Posted By ShD3luxe
Danger Zone weapons events

Hi are there any events for weapon_fists , hammer,etc from the Danger Zone update ?
I want to hook the event for droping weapons with fist (MOUSE 2 attack) and stop it.
Or are there any cvars for...
Forum: Scripting 08-21-2019, 20:54
Replies: 13
Views: 884
Posted By ShD3luxe
Re: Problem MySQL T_LoadData

public void OnClientDisconnect(int client)
{
char query[256], steamid[32];
GetClientAuthId(client, AuthId_Steam2, steamid, sizeof(steamid));
FormatEx(query, sizeof(query), "UPDATE...
Showing results 1 to 25 of 41

 
Forum Jump

All times are GMT -4. The time now is 01:55.


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