Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 399
Search took 0.01 seconds.
Search: Posts Made By: xf117
Forum: Scripting 02-12-2016, 02:12
Replies: 11
Views: 2,743
Posted By xf117
Re: [CSGO] No kill in buyzone

You can hurt someone if you are not in game.

And the order of execution matters.
Checking this doesn't make any sense since execution goes left to right.

// ...
if (bool:GetEntProp(victim,...
Forum: Scripting 02-08-2016, 10:01
Replies: 5
Views: 1,109
Posted By xf117
Re: Need help to update plugin for CSGO

You don't really need even PHP for this. Basic HTML will do. Most servers already have this in the form of fastdl server. I don't think there is the other way for cs:go tho.
Forum: Scripting 02-03-2016, 08:22
Replies: 3
Views: 1,630
Posted By xf117
Re: [HELP] CS:GO After-Kniferound-plugin

There is a CS_GetTeamScore function which takes CS_TEAM_T or CS_TEAM_CT as a param. There is also GetTeamScore function which probably does the same. The first one might return something like whole...
Forum: Scripting 02-03-2016, 03:35
Replies: 2
Views: 793
Posted By xf117
Re: [CSGO] Save weapon on respawn command

GivePlayeritem expects a string while GetPlayerWeaponSlot returns the entity index. They won't work together.

You need to either switch GivePlayerItem to EquipPlayerWeapon which takes the entity...
Forum: Scripting 02-01-2016, 09:59
Replies: 2
Views: 798
Posted By xf117
Re: [CS:GO] Server crash if no menu item was selected

Is there a reason why you make every function as an Action?
Forum: Scripting 02-01-2016, 02:14
Replies: 6
Views: 2,479
Posted By xf117
Re: [CS:GO] Limit fps?

You would be surprised, but bhoping with low fps is actually much easier.
You can check on fps_max, but you cannot force it.
Forum: Scripting 03-24-2015, 03:44
Replies: 12
Views: 1,534
Posted By xf117
Re: Beginner plugin help!

And using new syntax which is same or less in functionality, not fully done and a subject of change is not wasting the time?
Forum: Scripting 03-21-2015, 10:27
Replies: 5
Views: 1,344
Posted By xf117
Re: [CSS] Bans log.

Maybe it cannot create the new file? Also first "/" in the buildpath is not needed.
Are you getting any errors in the log?
Forum: Scripting 03-19-2015, 08:43
Replies: 15
Views: 2,336
Posted By xf117
Re: Prevent map from using say

I've already stated the constructive argument. If you can't figure out the proper way to do it by combining several entities in Source way (triggers, events and filters), you can't produce a good...
Forum: Scripting 03-19-2015, 06:33
Replies: 15
Views: 2,336
Posted By xf117
Re: Prevent map from using say

point_servercommand should be removed from all maps by default. If map absolutely requires this entity, it is probably sucks anyway since mapmaker failed to do it correctly.
Forum: Scripting 03-17-2015, 16:02
Replies: 5
Views: 918
Posted By xf117
Re: SQL_TQuery help

if second argument is just an int, you can pass them both as one interger. Considering each of them fit in int16
Forum: Scripting 03-16-2015, 12:24
Replies: 6
Views: 843
Posted By xf117
Re: Making a plugin to store Stripper configs in db

All of it is possible. You can use db as permanent storage and configs as local storage.
On server start load a start map config (if you gonna use threaded sql, you will probably have to restart the...
Forum: Scripting 03-16-2015, 09:07
Replies: 6
Views: 1,679
Posted By xf117
Re: Player push button nr. 1.

You can use OnPlayerRunCmd, it called each time the client presses a button

public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon) {

if (buttons &...
Forum: Scripting 03-15-2015, 04:13
Replies: 4
Views: 674
Posted By xf117
Re: How to run an Action code from another Action code?

You can format the string before you use it.


decl String:command[64];
Format(command, sizeof(command), "sm_cmdgsplay %s", randomWord);
FakeClientCommand(client, command);
Forum: Scripting 03-14-2015, 09:55
Replies: 14
Views: 1,401
Posted By xf117
Re: Jail plugin help

You never check IsClientInGame. If you call GetPlayerWeaponSlot on non existing client, it will invoke an error and your cycle will break.

Also, never ever use ServerCommand with player's name in...
Forum: Scripting 03-14-2015, 06:33
Replies: 14
Views: 1,401
Posted By xf117
Re: Jail plugin help

Well, there are several cases how these weapons can be spawned on a map. And multiple ways to remove these. If they are spawning on the ground each round you can use

#include <sdktools>

new...
Forum: Scripting 03-14-2015, 05:44
Replies: 14
Views: 1,401
Posted By xf117
Re: Jail plugin help

%s expects a string and puts it in it's own place.
%N expects a client id and puts client's name in it's own place.

Your %s is not an error. With %N it's just looks a little bit cleaner.
Forum: Scripting 03-14-2015, 04:53
Replies: 14
Views: 1,401
Posted By xf117
Re: Jail plugin help

Something like that

new gStraznik;

public OnPluginStart() {

// Your code
HookEvent("player_death", OnPlayerDeath);
}
Forum: Scripting 03-13-2015, 10:00
Replies: 7
Views: 1,948
Posted By xf117
Re: TE_SetupBeamFollow - appears in front of face?

You can attach it to the client's weapon.

Also you can create an entity and position it anywhere you want relatively to player. Then mark the player as parent for that entity(this will force...
Forum: Scripting 03-10-2015, 12:30
Replies: 51
Views: 8,563
Posted By xf117
Re: Plugin Protect.

I don't have any problems with license. Copyright law does work here... sometimes.
I'm just saying GPL and LGPL licenses are not officially acknowledged here and they hold no weight in court.
Forum: Scripting 03-10-2015, 04:57
Replies: 51
Views: 8,563
Posted By xf117
Re: Plugin Protect.

Some countries doesn't even acknowledge open source licensed products. In our laws there is no such thing as free open source license and it is not allowed to use such products in government sector...
Forum: Scripting 03-10-2015, 04:46
Replies: 8
Views: 5,514
Posted By xf117
Re: [ CS:GO ] Using the player_connect event

You could just use OnClientPostAdminCheck / OnClientAuth to save the steam id of the person who entered.
Using curl or socket lib is probably the better idea.
Forum: Scripting 03-10-2015, 04:38
Replies: 16
Views: 2,037
Posted By xf117
Re: What I did wrong?

If this wasn't fixed, In cs:go you have to do some extra work with javascript to make the motd to appear.
Forum: Scripting 03-08-2015, 15:36
Replies: 6
Views: 2,061
Posted By xf117
Re: CSGO remove weapon not working

For CS:Go the most stable way to remove weapon is to force drop it and then AcceptEntityInput kill.
Tested it on real loaded server with constant weapon switch/remove spam. Only this way worked...
Forum: Scripting 03-07-2015, 05:56
Replies: 3
Views: 1,319
Posted By xf117
Re: CSGO: unregistering console commands

Do they have to be the legit console commands?
You can hook chat (https://sm.alliedmods.net/new-api/console/OnClientSayCommand) and console commands...
Showing results 1 to 25 of 399

 
Forum Jump

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


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