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

Showing results 1 to 25 of 296
Search took 0.03 seconds.
Search: Posts Made By: mcpan313
Forum: Scripting 10-28-2013, 13:54
Replies: 7
Views: 3,809
Posted By mcpan313
Re: What is enum?

enum EnumZombieClass
{
Hunter = 0,
Boomer = 1,
}

#define NAME_LENGTH 32
enum EnumZombieProp
{
String:Name[NAME_LENGTH],
Forum: Source Servers (SRCDS) 08-18-2013, 20:21
Replies: 4
Views: 4,418
Posted By mcpan313
Re: CSGO how to edit end round vote map list

https://forums.alliedmods.net/attachment.php?attachmentid=124465
Forum: Scripting 08-08-2013, 16:07
Replies: 12
Views: 2,719
Posted By mcpan313
Re: [L4D] SDKHooks No Damage?

new bool:g_bLateload;
public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max)
{
g_bLateload = late;
return APLRes_Success;
}

public OnPluginStart()
{
if...
Forum: Scripting 07-24-2013, 12:57
Replies: 8
Views: 2,267
Posted By mcpan313
Re: [CSGO] SDKCalls

// PrintToChat(client, "ammo=%i/%i (max:%i)", GetWeaponPrimaryAmmo(client), GetWeaponSecondaryAmmo(client), GetWeaponAmmoMax(client));

stock GetWeaponPrimaryAmmo(client, weapon=0)
{
if (!weapon...
Forum: Scripting 07-24-2013, 11:07
Replies: 8
Views: 2,267
Posted By mcpan313
Re: [CSGO] SDKCalls

Working fine.
Forum: Scripting 07-24-2013, 10:24
Replies: 5
Views: 2,197
Posted By mcpan313
Forum: Scripting 07-24-2013, 10:19
Replies: 8
Views: 2,267
Posted By mcpan313
Re: [CSGO] SDKCalls

// PrintToChat(client, "ammo=%i/%i", GetWeaponPrimaryAmmo(client), GetWeaponSecondaryAmmo(client));

stock GetWeaponPrimaryAmmo(client, weapon=0)
{
if (!weapon &&
(weapon =...
Forum: Scripting 07-24-2013, 09:23
Replies: 8
Views: 2,267
Posted By mcpan313
Re: [CSGO] SDKCalls

Have you try this cvar? ammo_338mag_max ammo_357sig_max ammo_45acp_max ammo_50AE_max ammo_556mm_box_max ammo_556mm_max ammo_57mm_max ammo_762mm_max ammo_9mm_max ammo_buckshot_max
Forum: Scripting 07-23-2013, 04:26
Replies: 8
Views: 1,843
Posted By mcpan313
Re: Need help to print online admins to chat

public OnPluginStart()
{
AddCommandListener(CommandListener_Say, "say");
AddCommandListener(CommandListener_Say, "say_team");
}

public Action:CommandListener_Say(client, const...
Forum: Scripting 07-23-2013, 04:05
Replies: 5
Views: 2,197
Posted By mcpan313
Re: [TF2]Send message to URL

'

Required Socket Extension (https://forums.alliedmods.net/showthread.php?t=67640)

/**
* triggered if get ip location.
*
* @param location ip location.
* @param data data...
Forum: Scripting 07-22-2013, 06:07
Replies: 5
Views: 2,197
Posted By mcpan313
Re: [TF2]Send message to URL

This webapi charset = gbk, not utf8, results is unreadable.
Forum: Scripting 07-10-2013, 06:07
Replies: 10
Views: 2,517
Posted By mcpan313
Re: SQL_FetchString, problem, or?

public OnClientAuthorized(client, const String:auth[])
{
if (IsFakeClient(client))
{
return;
}

decl String:szQuery[256];

FormatEx(szQuery, sizeof(szQuery),
Forum: Scripting 07-10-2013, 00:53
Replies: 6
Views: 4,977
Posted By mcpan313
Re: Error 006: Must be assigned to an array

new Handle:g_hMapList;
new String:g_szNextMap[64];

public OnPluginStart()
{
g_hMapList = CreateArray(64);

PushArrayString(g_hMapList, "arena_lumberyard");
PushArrayString(g_hMapList,...
Forum: General 07-01-2013, 02:56
Replies: 2
Views: 1,594
Posted By mcpan313
Re: [CSGO] Hide cash gain message

Hook TextMsg usermsg, and block it.

Example
public OnPluginStart()
{
HookUserMessage(GetUserMessageId("TextMsg"), MsgHook_AdjustMoney, true);
}

public...
Forum: Snippets and Tutorials 06-19-2013, 21:41
Replies: 44
Views: 18,594
Posted By mcpan313
Re: Determine a Client's OS

Nice job, very useful! :)
Forum: Scripting 06-07-2013, 21:55
Replies: 3
Views: 1,483
Posted By mcpan313
Re: Regexing/Extracting info from ServerCommandEx

#include <regex>
stock GetStatsInfo()
{
decl String:buffer[256];
ServerCommandEx(buffer, sizeof(buffer), "stats");

new Handle:re =...
Forum: Scripting 06-04-2013, 03:00
Replies: 12
Views: 2,984
Posted By mcpan313
Re: CS_RespawnPlayer Problem :/

Yes.
The timer ends (via Plugin_Stop or being a one-time timer that is finished) (http://wiki.alliedmods.net/Handles_(SourceMod_Scripting)#Timers)
Forum: Scripting 05-30-2013, 22:19
Replies: 10
Views: 2,177
Posted By mcpan313
Re: ServerClass names?

Change SourceTV name?
Forum: Scripting 05-30-2013, 22:16
Replies: 10
Views: 2,417
Posted By mcpan313
Re: Random map locations

I suggest you use it
http://hg.alliedmods.net/cssdm/file/.../dm_preset_spawns.sp (http://hg.alliedmods.net/cssdm/file/tip/scripting/dm_preset_spawns.sp)
Forum: Scripting 05-30-2013, 11:53
Replies: 10
Views: 2,417
Posted By mcpan313
Re: Random map locations

Maybe, but most of the time starts from the underground, you can test it.
Forum: Scripting 05-30-2013, 05:38
Replies: 10
Views: 2,417
Posted By mcpan313
Re: Random map locations

native Float:GetRandomFloat (http://docs.sourcemod.net/api/index.php?fastload=show&id=95&)(Float:fMin=0.0, Float:fMax=1.0);

My mistake. this range is not 0.0 to 1.0


stock...
Forum: Scripting 05-23-2013, 23:59
Replies: 4
Views: 1,222
Posted By mcpan313
Re: Script to re-launch warmup

Oops! I didn't notice this command :bacon::bacon::bacon:

mp_warmup_start
mp_warmup_end
Forum: Scripting 05-23-2013, 22:10
Replies: 8
Views: 1,371
Posted By mcpan313
Re: I cant seem to get this working

#include <sourcemod>

new String:g_SteamId[32] = "STEAM_0:0:42468081";

public OnClientAuthorized(client, const String:auth[])
{
if (IsFakeClient(client))
{
// Ignore bots
return;
Forum: Scripting 05-23-2013, 21:15
Replies: 4
Views: 1,222
Posted By mcpan313
Re: Script to re-launch warmup

#pragma semicolon 1

#include <sdktools>

public OnPluginStart()
{
RegServerCmd("dowarmup", SrvCmd_DoWarmup, "dowarmup <time>, 0 = instant");
}

public Action:SrvCmd_DoWarmup(args)
Forum: Scripting 05-21-2013, 06:36
Replies: 3
Views: 843
Posted By mcpan313
Re: Entity Name ?

GetEdictClassname(ent, ent_name, sizeof(ent_name)); (http://docs.sourcemod.net/api/index.php?fastload=show&id=65&)

and your code need
public OnStartTouch(ent, client)
{
decl...
Showing results 1 to 25 of 296

 
Forum Jump

All times are GMT -4. The time now is 17:52.


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