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

Showing results 1 to 23 of 23
Search took 0.00 seconds.
Search: Posts Made By: Pruppet
Forum: Plugin/Gameplay Ideas and Requests 07-27-2017, 14:29
Replies: 32
Views: 6,661
Posted By Pruppet
Re: Remember player team after reconnect

Tested and works, changes client's team upon team selection after having joined, although they still can change team again later on.
If you want it to keep denying team change, just tell me :wink:
Forum: Scripting 05-19-2017, 17:58
Replies: 4
Views: 1,068
Posted By Pruppet
Re: [ANY] Help with a script

Untested, there might be errors here and there, also you should definitely modify this to your liking, it's not complete, but there's all the necessary stuff to continue on. Enjoy the snippet :)...
Forum: Scripting 05-17-2017, 17:51
Replies: 9
Views: 2,155
Posted By Pruppet
Re: [CS:GO] Entities spawn with stock models, but not custom?

Re-order this piece of code, since if you activate the entity before teleporting it, the teleport might just be leaving it stuck in air:

FROM:
int entity =...
Forum: Scripting 05-16-2017, 11:15
Replies: 9
Views: 2,155
Posted By Pruppet
Re: [CS:GO] Entities spawn with stock models, but not custom?

Check if you've precached the model first, indeed
#define MONEYMODEL "models/custom-box.mdl"

public void OnConfigsExecuted()
{
PrecacheModel(MONEYMODEL, true);
}

Then use this instead...
Forum: Scripting 05-16-2017, 09:48
Replies: 4
Views: 2,796
Posted By Pruppet
Re: Getting Client's Max Health

bool g_bIsPlayerDamaged[MAXPLAYERS + 1];

if (GetClientHealth(client) < GetEntProp(client, Prop_Data, "m_iMaxHealth"))
{
g_bIsPlayerDamaged[client] = true;

// Do code.
}

if...
Forum: Scripting 01-27-2017, 10:37
Replies: 9
Views: 1,284
Posted By Pruppet
Re: How can I make the command use 3 arguments?

Try that:

decl String:sArg[64], String:sArg2[64], String:sArg3[64];

GetCmdArg(1, sArg, sizeof(sArg));
GetCmdArg(2, sArg2, sizeof(sArg2));
GetCmdArg(3, sArg3, sizeof(sArg3));

new arg1 =...
Forum: Scripting 01-27-2017, 09:40
Replies: 9
Views: 1,284
Posted By Pruppet
Re: How can I make the command use 3 arguments?

Untested, but should work:

decl String:sArg[64], String:sArg2[64], String:sArg3[64];

GetCmdArg(1, sArg, sizeof(sArg));
GetCmdArg(2, sArg2, sizeof(sArg2));
GetCmdArg(3, sArg3,...
Forum: Scripting 01-24-2017, 13:47
Replies: 0
Views: 642
Posted By Pruppet
env_particlesmokegrenade

Is there a way to set the size of env_particlesmokegrenade? I need it to be smaller.
Forum: Scripting 01-22-2017, 13:30
Replies: 11
Views: 2,054
Posted By Pruppet
Re: Hi please help with jb plugin

I'm sure it ain't gonna work, at least you can do

#define MAXLENGHT_NAME 128
Forum: Scripting 01-22-2017, 13:20
Replies: 11
Views: 2,054
Posted By Pruppet
Re: Hi please help with jb plugin

For the error at line 379 I can't do anything, can't seem to find the OnChatMessage action anywhere else.

Got rid of the other errors, untested:


#pragma semicolon 1
#include <sourcemod>...
Forum: Scripting 01-22-2017, 13:10
Replies: 11
Views: 2,054
Posted By Pruppet
Re: Hi please help with jb plugin

Then try Format(name, MAX_NAME_LENGTH, " \x01(\x04LIBRE\x01) %s", name);
Forum: Scripting 01-22-2017, 11:38
Replies: 11
Views: 2,054
Posted By Pruppet
Re: Hi please help with jb plugin

Line 380 - Format(name, sizeof(name), " \x01(\x04LIBRE\x01) %s", name);
Forum: Scripting 01-22-2017, 11:35
Replies: 4
Views: 733
Posted By Pruppet
Re: Menu items per client

Problem solved.
Forum: Scripting 01-22-2017, 06:35
Replies: 7
Views: 1,721
Posted By Pruppet
Re: [CSGO] Detect if attacker is the same

Untested, try this. It disables the knife delay after 20 seconds from round start



#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <cstrike>

bool g_bKnifeEnabled =...
Forum: Scripting 01-21-2017, 13:41
Replies: 4
Views: 733
Posted By Pruppet
Re: Menu items per client

Really helpful!



The thing is that I still want to display the item to everyone, but for who selected it, it will be non-selectable but still present
Forum: Scripting 01-21-2017, 12:34
Replies: 7
Views: 1,721
Posted By Pruppet
Re: [CSGO] Detect if attacker is the same

Try this, has to work 100%

if (knifeattacker[victim] != attacker)

Also, just a tip, don't mix up old syntax type with the new one.
Forum: Scripting 01-21-2017, 12:17
Replies: 4
Views: 733
Posted By Pruppet
Menu items per client

Is it possible to have a different ITEMDRAW_ for an item depending on a client?

I want to make it so if Player1 selects an item, the item would be available to everybody but Player1 who already...
Forum: Scripting 01-21-2017, 12:11
Replies: 1
Views: 693
Posted By Pruppet
Re: weapon_ entities set no move flag

Try this:

SetEntityMoveType(entity, MOVETYPE_NONE);
Forum: Scripting 01-21-2017, 10:32
Replies: 7
Views: 1,721
Posted By Pruppet
Re: [CSGO] Detect if attacker is the same

Check your mis-types, you had "aattacker" instead of "attacker"

if (!knifeattacker[victim] == attacker) //referenced if statement
{
float timeremaining =...
Forum: Scripting 01-05-2017, 18:19
Replies: 6
Views: 1,277
Posted By Pruppet
Re: [CS:GO] A little help with menu and keyvalues

Problem solved, I studied how items were dealt with in Zephyrus's store and fixed everything.

What I did was create a string, pass the g_iItems into the string through IntToString and add the item...
Forum: Scripting 01-04-2017, 07:04
Replies: 6
Views: 1,277
Posted By Pruppet
Re: [CS:GO] A little help with menu and keyvalues

Updated 1st post with the menu handler
Forum: Scripting 01-04-2017, 06:23
Replies: 6
Views: 1,277
Posted By Pruppet
Re: [CS:GO] A little help with menu and keyvalues

The value of g_iItems. Somehow, if the value (g_iItems) of the item is 4, when I select that item from the menu, it gives me another item with the value (g_iItems) 0.

I'll try to explain myself...
Forum: Scripting 01-03-2017, 17:18
Replies: 6
Views: 1,277
Posted By Pruppet
[CS:GO] A little help with menu and keyvalues

Good evening everybody,
I'm stuck with a problem since days and I require some help.

I am trying to retrieve data from a .txt file containing the menu items through KV and put the items in their...
Showing results 1 to 23 of 23

 
Forum Jump

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


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