Raised This Month: $318 Target: $400
 79%   Almost there!

Showing results 1 to 25 of 157
Search took 0.02 seconds.
Search: Posts Made By: impossible_cc
Forum: Scripting 10-01-2019, 07:27
Replies: 1
Views: 864
Posted By impossible_cc
Re: What are the default Variable Values?

for any primitive data type
default(type) = view_as<type>(0)

Handle = view_as<Handle>(0);
(same as null or INVALID_HANDLE)

bool = false, float = 0.0, char = view_as<char>(0), etc.
Forum: Scripting 08-19-2019, 15:06
Replies: 1
Views: 1,065
Posted By impossible_cc
[csgo] csweaponid for new weapons

Is there any csweaponids for weapon_fists, weapon_axe?
I cant find it here -> cstrike api (https://sm.alliedmods.net/new-api/cstrike/CSWeaponID)

Usually I store a weapon type with csweaponid, but...
Forum: Scripting 08-09-2019, 08:49
Replies: 8
Views: 2,815
Posted By impossible_cc
Re: Passing string to CreateTimer Function

Maybe there is more efficient method, but this should work


#define STEAMID_CHARSTR_LENGTH 25

...(...)
{
char steamid[STEAMID_CHARSTR_LENGTH];
if(GetClientAuthId(client, AuthId_Steam2,...
Forum: Scripting 07-23-2019, 10:53
Replies: 4
Views: 1,263
Posted By impossible_cc
Re: (L4D2) server cookie?

You can use convar instead
Forum: Scripting 07-19-2019, 04:47
Replies: 2
Views: 1,893
Posted By impossible_cc
Re: [CS:GO] The value of m_hObserverTarget does'n work

It means that fClient[iTarget[client]] is out of bounds of array. So you just need to check this before line 47.

if(iTarget[client]>MaxClients || iTarget[client] <= 0)
{
return;
}
Forum: Scripting 06-29-2019, 16:20
Replies: 3
Views: 1,135
Posted By impossible_cc
Re: [L4D2]Why this cause tank instant spawn when rount start?

Also don't use TIMER_FLAG_NO_MAPCHANGE if you have a variable (Handle) which tracks timer condition, because if timer gets killed on map end, variable doesnt become equal to INVALID_HANDLE or null,...
Forum: Scripting 06-24-2019, 19:11
Replies: 2
Views: 1,063
Posted By impossible_cc
Re: How to 'hook' when player uses heavy attack with knife

Sorry for my English, but that is not what I want.
'Force player to use heavy attack' means force to do that right now, but not just to forbid primary attack. So I want to make player to do...
Forum: Scripting 06-24-2019, 16:46
Replies: 2
Views: 1,063
Posted By impossible_cc
How to 'hook' when player uses heavy attack with knife

csgo.
Is there any way to catch when player attacks heavily (right-click) with knife.
weapon_fire event triggers only for left-click attacks.

Also second question, is it possible to 'force'...
Forum: Scripting 06-19-2019, 17:57
Replies: 2
Views: 1,169
Posted By impossible_cc
Re: Forbidate pressing IN_ATTACK and INT_ATTACK2

Sorry for late response


//To block attack
CreateTimer(0.3, Timer_BlockAttack, client, TIMER_REPEAT);
//
public Action Timer_BlockAttack(Handle t, int client)
{
if(...)
{
Forum: Scripting 06-17-2019, 14:10
Replies: 5
Views: 1,572
Posted By impossible_cc
Re: How to make blur effect

Thanks, I will try
Forum: Scripting 06-17-2019, 14:09
Replies: 5
Views: 1,572
Posted By impossible_cc
Re: How to make blur effect

Thanks a lot! This is what I was looking for.
Forum: Scripting 06-17-2019, 03:25
Replies: 5
Views: 1,572
Posted By impossible_cc
Re: How to make blur effect

It looks like that. Can someone explain me how to do that?

http://ipic.su/img/img7/fs/4WssdicZ_fU_1.1560756280.jpg
Forum: Scripting 06-12-2019, 19:13
Replies: 5
Views: 1,572
Posted By impossible_cc
How to make blur effect

game - csgo. So i want to make entity transparent and blurred. So it looks almost invisible, but it blurs things that is behind that entity.
Thanks in advance!
Forum: Scripting 05-29-2019, 16:08
Replies: 3
Views: 1,301
Posted By impossible_cc
Re: [CSS] Simple vote

You dont need a plugin for that.

All you have to do is write

!vote do you like server

in chat

or
Forum: Scripting 05-28-2019, 17:56
Replies: 5
Views: 1,344
Posted By impossible_cc
Re: CSGO get the winning team on the Match end with all players in the team

game_end should work.
https://wiki.alliedmods.net/Generic_Source_Events#game_start
Forum: Scripting 05-27-2019, 17:05
Replies: 6
Views: 1,129
Posted By impossible_cc
Re: Call an Action function from another function

public int Native_Give_Points(Handle:plugin, int numParams)
{
int arg1; // id of the function caller
char arg2[32]; // give points to this name
int arg3; // amount of points

arg1 =...
Forum: Scripting 05-27-2019, 17:03
Replies: 6
Views: 1,129
Posted By impossible_cc
Re: Call an Action function from another function

Action is just a type of returning value.
You should use predetermined amount of parameters, or if you dont know exactly how many parameters will be passed, use array as param.
Forum: Scripting 05-03-2019, 16:43
Replies: 5
Views: 1,153
Posted By impossible_cc
Re: Help by example how to create a multi-stage menu?

#include <sourcemod>

int g_iChoosenInMenu[MAXPLAYERS + 1];

public void OnPluginStart()
{
RegConsoleCmd("sm_menu", Cmd_menu);
}

public Action Cmd_menu(int client, int args)
Forum: Scripting 05-03-2019, 16:25
Replies: 5
Views: 1,153
Posted By impossible_cc
Re: Help by example how to create a multi-stage menu?

Not tested, probably there is better way to do it

Может можно и по-другому, я вижу это так. Могу написать что-то подробнее если нужно.


#include <sourcemod>

int g_iChoosenInMenu[MAXPLAYERS...
Forum: Scripting 05-03-2019, 16:07
Replies: 5
Views: 1,153
Posted By impossible_cc
Re: Help by example how to create a multi-stage menu?

What do you mean "get all that is selected in the public"?

Что значит "получить всё, что выбрано в паблик"?
Forum: Scripting 04-25-2019, 15:22
Replies: 10
Views: 1,898
Posted By impossible_cc
Re: Crash AcceptEntityInput

Safer way


#pragma semicolon 1

#include <sdkhooks>
#include <sdktools>

public OnEntityCreated( entity, const String:classname[] )
{
Forum: Scripting 04-24-2019, 10:08
Replies: 3
Views: 1,338
Posted By impossible_cc
Re: [CS:GO] Entity with gravity

As I know (I'm not sure), you cannot set velocity for prop entities. _projectile entities work with velocity. Try hegrenade_projectile or smokegrenade_projectile instead of decoy_projectile.
Forum: Scripting 04-22-2019, 13:04
Replies: 4
Views: 1,478
Posted By impossible_cc
Re: Tag mismatch - new syntax

float iRoundHeight = RoundFloat(fOrigin[2]);


RoundFloat returns int.
So you should do


float iRoundHeight = fOrigin[2];
Forum: Scripting 04-15-2019, 12:30
Replies: 10
Views: 1,898
Posted By impossible_cc
Re: Crash AcceptEntityInput

Not tested but should work


#pragma semicolon 1

#include <sdkhooks>
#include <sdktools>

public OnEntityCreated( entity, const String:classname[] )
{
Forum: Scripting 04-12-2019, 16:47
Replies: 1
Views: 1,092
Posted By impossible_cc
Re: Group Money

It is not possible.
Variable cannot be equals to 1, equals to 2, equals to 16 and equals to 17 in the same time.
I think that you need this:

bool IsRoundBlah(int iRound)
{
return iRound...
Showing results 1 to 25 of 157

 
Forum Jump

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


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