Raised This Month: $52 Target: $400
 13% 

Showing results 1 to 25 of 151
Search took 0.03 seconds.
Search: Posts Made By: farawayf
Forum: Scripting 07-09-2019, 15:16
Replies: 20
Views: 691
Posted By farawayf
Re: how can you scan a variable and then apply it?

public Action rr(int client, int args) {
if(args < 1) {
ReplyToCommand(client, "[SM] Usage: sm_rr <seconds>");
return Plugin_Handled;
}
char value[32]; //also do...
Forum: Scripting 07-09-2019, 14:40
Replies: 20
Views: 691
Posted By farawayf
Re: how can you scan a variable and then apply it?

argument number to retrieve.
for example we need to make a command like sm_cvar <cvar> <value>

so need to do like this


char cvar[64], cvarValue[32], buffer[96];

GetCmdArg(1,...
Forum: Scripting 07-09-2019, 14:05
Replies: 3
Views: 311
Posted By farawayf
Re: Help

#include <sourcemod>

#pragma newdecls required

public void OnPluginStart() {
RegAdminCmd("sm_say", say, ADMFLAG_KICK);
}

public Action say(int client, int args) {
if(args < 1) {
Forum: Scripting 07-09-2019, 13:46
Replies: 20
Views: 691
Posted By farawayf
Re: how can you scan a variable and then apply it?

public Action cheats(int client, int args) {
/* if arguments less than 1, then print to client and return. This will be called if player types the command without
arguments. Like...
Forum: Scripting 07-09-2019, 12:12
Replies: 3
Views: 311
Posted By farawayf
Re: Help

#include <sourcemod>

#pragma newdecls required

public void OnPluginStart() {
RegAdminCmd("sm_sayfff", sayff, ADMFLAG_BAN);
}

public Action sayff(int client, int args) {...
Forum: Scripting 07-09-2019, 11:52
Replies: 20
Views: 691
Posted By farawayf
Re: how can you scan a variable and then apply it?

upd include

#include <sourcemod>

#pragma newdecls required

public void OnPluginStart() {
RegAdminCmd("sm_cheats", cheats, ADMFLAG_CONVARS);
}
Forum: Scripting 07-09-2019, 06:58
Replies: 4
Views: 423
Posted By farawayf
Re: Vip connect plugin

decompiled source. you need to clean the code first
Forum: Scripting 07-08-2019, 06:58
Replies: 10
Views: 520
Posted By farawayf
Re: Recommendations where to start learning SP??

1) Yes
2) Yes
3) https://forums.alliedmods.net/archive/index.php/t-116099.html
Forum: Scripting 07-07-2019, 18:12
Replies: 10
Views: 520
Posted By farawayf
Re: Recommendations where to start learning SP??

#include <sourcemod>

#define DEBUG

#define PLUGIN_AUTHOR ""
#define PLUGIN_VERSION "0.00"

#pragma newdecls required
Forum: Scripting 07-07-2019, 17:09
Replies: 10
Views: 520
Posted By farawayf
Re: Recommendations where to start learning SP??

also dont use unnecessary includes.
and on the RegConsoleCmd callback function parameter is client. just notice.



https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax
Forum: Scripting 07-02-2019, 18:03
Replies: 3
Views: 517
Posted By farawayf
Re: [CSGO] Render (screenshot) weapon model in Counter-Strike: Global Offensive

or u can create entity "env_smokestack" with green color and take a screenshot inside the smoke
Forum: Scripting 06-28-2019, 12:12
Replies: 1
Views: 483
Posted By farawayf
simulating projectile ricochet

im trying to do noblock projectiles for teammates.


public void OnEntityCreated(int entity, const char[] classname) {
if (StrEqual(classname, "smokegrenade_projectile", false)) {...
Forum: Scripting 06-26-2019, 10:17
Replies: 9
Views: 781
Posted By farawayf
Re: ClientCommand(client, "play

no, u cant set the volume in this way.

check this
https://sm.alliedmods.net/new-api/sdktools_sound/EmitSound
Forum: Scripting 06-26-2019, 06:04
Replies: 5
Views: 701
Posted By farawayf
Re: Fake entity Classname

Like this ?


char eName[64];

GetEntPropString(caller, Prop_Data, "m_iName", eName, sizeof(eName));

if (StrEqual(eName, "before")) {
ReplaceString(eName,...
Forum: Scripting 06-21-2019, 07:32
Replies: 5
Views: 806
Posted By farawayf
Re: Can't seem to understand CS_OnBuyCommand

afaik the function will be done even if the player does not have that much money



public Action CS_OnBuyCommand(int client, const char[] weapon) {
if(CheckCommandAccess(client,...
Forum: Scripting 06-20-2019, 10:19
Replies: 1
Views: 659
Posted By farawayf
Re: chat to spectator only

for (int i = 1; i <= MaxClients; i++) {
if (IsClientInGame(i) && GetClientTeam(i) == 1){
PrintToChat(i, " ");
}
}
Forum: Scripting 06-17-2019, 13:15
Replies: 5
Views: 926
Posted By farawayf
Re: How to make blur effect

You can change the entity model to these and put a transparent color.

"$dudvmap" "dev/water_dudv"
"$normalmap" "dev/water_normal"

almost the same effect

at least i did it for ghost mode...
Forum: Scripting 06-17-2019, 13:10
Replies: 4
Views: 753
Posted By farawayf
Forum: Scripting 06-16-2019, 19:23
Replies: 4
Views: 753
Posted By farawayf
Re: Something special for ONE weapon

Creating weapon via CreateEntityByName, then change classname to custom via DispatchKeyValue.
On weapon fire event get classname if equal custom = tracer.
Forum: Scripting 06-16-2019, 14:17
Replies: 2
Views: 624
Posted By farawayf
Re: Revive plugin compile errors

because that was a decompiled sourcecode with trash.
Forum: Scripting 06-14-2019, 17:15
Replies: 3
Views: 729
Posted By farawayf
Re: Change VIP plugin for all players

simple code

CS:S


#pragma semicolon 1

#include <sourcemod>
#include <sdktools>
Forum: Scripting 06-11-2019, 12:35
Replies: 8
Views: 942
Posted By farawayf
Re: [CURE] Need help with plugin for forcewin

try

btw idk much about that game.


public Action RoundStart(Event event, const char[] name, bool dontBroadcast) {
Event gamewin = CreateEvent("win_game");
if(gamewin != null) {
...
Forum: Scripting 06-06-2019, 17:50
Replies: 4
Views: 699
Posted By farawayf
Forum: Scripting 06-06-2019, 11:02
Replies: 12
Views: 1,197
Posted By farawayf
Forum: Scripting 06-06-2019, 10:37
Replies: 12
Views: 1,197
Posted By farawayf
Re: [Not Solved] The help of professional programmers is required.

try. not tested


#include <sourcemod>
#include <sdktools>

public void OnPluginStart() {
HookEvent("player_death", PlayerDeath);
}
Showing results 1 to 25 of 151

 
Forum Jump

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


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