Raised This Month: $149 Target: $400
 37% 

Showing results 1 to 25 of 94
Search took 0.01 seconds.
Search: Posts Made By: Walgrim
Forum: Scripting 08-11-2018, 07:25
Replies: 1
Views: 429
Posted By Walgrim
Re: disable default game sounds

Hope this is helpful: https://forums.alliedmods.net/showthread.php?t=189957
Forum: Snippets and Tutorials 08-10-2018, 19:19
Replies: 13
Views: 1,836
Posted By Walgrim
Re: SQLite Helper

He's talking of all the double slashes you are using instead of
/* */
Forum: Scripting 08-09-2018, 13:08
Replies: 12
Views: 1,085
Posted By Walgrim
Re: SQLite set multiple values

If I'm not wrong you want to set the playtime of a player using timestamp?
Forum: Scripting 08-09-2018, 12:23
Replies: 12
Views: 1,085
Posted By Walgrim
Re: SQLite set multiple values

If you want to get the timestamp, use the GetTime() function.
https://sm.alliedmods.net/new-api/sourcemod/GetTime
Forum: Scripting 12-10-2017, 08:33
Replies: 6
Views: 861
Posted By Walgrim
Re: CS:GO HUD player death PROBLEM !!!

Works great for me, tell me if you see it in the middle, replace
SetHudTextParams(1.0, 0.5, 9999.0, 100, 0, 255, 71);
by
SetHudTextParams(-1.0, -1.0, 9999.0, 100, 0, 255, 71);
Forum: Scripting 12-10-2017, 08:03
Replies: 6
Views: 861
Posted By Walgrim
Re: CS:GO HUD player death PROBLEM !!!

Try this:
#include <sourcemod>

static Handle HudText = null;

public void OnPluginStart() {
HudText = CreateHudSynchronizer();
HookEvent("player_death", OnPlayerDeath, EventHookMode_Pre);...
Forum: Scripting 12-10-2017, 06:41
Replies: 6
Views: 861
Posted By Walgrim
Re: CS:GO HUD player death PROBLEM !!!

ShowSyncHudText(attacker, hudtext,_tmp3);
replace it by
ShowSyncHudText(client, hudtext,_tmp3);
Forum: Scripting 12-09-2017, 16:24
Replies: 5
Views: 1,204
Posted By Walgrim
Re: [CS:GO]Hud text

He wanted to know how to create a hudsynchronizer and show the hud text during 10 seconds:
#include <sourcemod>
#pragma newdecls required

static Handle HudText = null;

public void...
Forum: Scripting 11-26-2017, 14:40
Replies: 13
Views: 1,529
Posted By Walgrim
Re: Name of client in PrintHintTextToAll

Well I post mine too, even if people are faster than me :^)
#include <sourcemod>
#define REQUESTHEAL "#heal"

Handle Delay[MAXPLAYERS+1] = null;
int TimerCount[MAXPLAYERS+1];

public...
Forum: Scripting 11-17-2017, 15:33
Replies: 8
Views: 879
Posted By Walgrim
Re: [ZR] Is there a way to fix this ?

Hoi, I did that, hope it will help
#include <sourcemod>
#include <sdkhooks>

public OnPluginStart() {
HookEvent("player_death", EventPlayerDeath, EventHookMode_Pre);
}

public Action...
Forum: Scripting 11-14-2017, 08:40
Replies: 4
Views: 667
Posted By Walgrim
Re: Create timer

Oh ok, thanks for explaining, didn't know that too :^)
Forum: Scripting 11-13-2017, 17:27
Replies: 4
Views: 667
Posted By Walgrim
Re: Create timer

Hey,
public void OnClientPutInServer(int client)
{
CreateTimer(7.0, CallVote, GetClientSerial(client));
}

public Action:CallVote(Handle:Timer, client) {
//Do your stuff
}
Forum: Scripting 11-13-2017, 17:24
Replies: 4
Views: 761
Posted By Walgrim
Re: Using ClientCommand in a timer?

Hey,
You can use EmitSoundToClient (https://sm.alliedmods.net/new-api/sdktools_sound/EmitSoundToClient)to do that :^)
Forum: Scripting 11-12-2017, 09:57
Replies: 12
Views: 1,831
Posted By Walgrim
Re: How can i fix this Array index is out of bounds? :/

Not sure but, here you use a String.

new String:rank[64];
SB_GetChatRank(author, rank, sizeof(rank)); // Line 999

And here a char, why? I mean, why not just using a string too?
public void...
Forum: TF2Items 11-11-2017, 08:45
Replies: 1
Views: 2,311
Posted By Walgrim
Re: Sandman Ball

Hey, I don't think there's a way to set the old bonk with tf2items (in tf2items.weapons.txt).
If you really want to get the bonk back you can use the plugin I did if you want:
#include <sourcemod>...
Forum: Scripting 08-07-2017, 06:19
Replies: 2
Views: 348
Posted By Walgrim
Re: set a ghost on player

You can try to see a bit in these plugins how it works maybe:
https://forums.alliedmods.net/showthread.php?p=1692661
https://forums.alliedmods.net/showthread.php?t=129735
Forum: Scripting 06-09-2017, 13:49
Replies: 13
Views: 1,305
Posted By Walgrim
Re: Error when adding entry to admin menu

Yeah they should but some don't lol
Forum: Scripting 06-09-2017, 08:52
Replies: 13
Views: 1,305
Posted By Walgrim
Re: Error when adding entry to admin menu

This error means that you made a mistake with the basic function.
If you used the latest compiler of sourcemod, and you tried the code of this tutorial, it will make an error like that.
Since this...
Forum: Scripting 06-09-2017, 07:14
Replies: 13
Views: 1,305
Posted By Walgrim
Re: Error when adding entry to admin menu

See that here : https://sm.alliedmods.net/new-api/topmenus/TopMenu/TopMenu

The tutorial is old so the syntax may changed. (Maybe)
Just look at the new api when you have an error like that.
Forum: Scripting 06-09-2017, 05:40
Replies: 7
Views: 716
Posted By Walgrim
Re: Stopping sounds for all players not working

Hoi,
Try this
public void OnPluginStart()
{
CreateTimer(1.0, StopSounds, _, TIMER_REPEAT);
}

public Action StopSounds(Handle timer)
{
for(new i=1;i<=MaxClients;i++)
Forum: Scripting 06-06-2017, 10:09
Replies: 18
Views: 1,793
Posted By Walgrim
Re: Help with plugin

Just look at the sp of some spawnprotections, you can make your own spawnprotect by taking example on the others.
Forum: Scripting 06-06-2017, 08:38
Replies: 18
Views: 1,793
Posted By Walgrim
Re: Help with plugin

He didn't ask for that I think ? (Not really sure :3)



But by the way, why don't you use something like a spawnprotection?
Forum: Scripting 06-06-2017, 06:20
Replies: 3
Views: 676
Posted By Walgrim
Re: [TF2] Change death message at the top corner

Sure, no problem so, here's the solution :


#include <sourcemod>
#include <sdkhooks>

public Plugin:myinfo =
{
name = "[TF2] Death rocket",
author = "Walgrim",
Forum: Scripting 06-05-2017, 11:15
Replies: 3
Views: 676
Posted By Walgrim
Forum: Scripting 06-05-2017, 10:59
Replies: 3
Views: 676
Posted By Walgrim
[TF2] Change death message at the top corner

Hey there !

So I think that the title resume the thing.
I'm looking to change the death message at the topcorner into a deflected rocket/tf_projectile_rocket on PlayerDeath.

Thing is I don't...
Showing results 1 to 25 of 94

 
Forum Jump

All times are GMT -4. The time now is 23:19.


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