AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How too use this plugin (https://forums.alliedmods.net/showthread.php?t=273872)

krillex1 10-28-2015 08:54

How too use this plugin
 
Hello! (:

Im new too this srcds area.

Can somone please tell me how do i use this code?

Code:

#include <sourcemod>
#include <smlib>

#define PLUGIN_VERSION "1.0"

#pragma semicolon 1

public Plugin:myinfo =
{
    name = "[ANY] Slay after joining a team",
    author = "Headline",
    description = "Slays the when a client chooses a team.",
    version = PLUGIN_VERSION,
    url = "http://www.michaelwflaherty.com"
};

public OnPluginStart()
{
    AddCommandListener(Command_JoinTeam, "jointeam"); // Hook Join Team
}


public Action:Command_JoinTeam(client, const String:command[], argc) 
{
    CreateTimer(0.2, Timer_Slay, client, TIMER_FLAG_NO_MAPCHANGE);
}

public Action:Timer_Slay(Handle:hTimer, any:client)
{
    ForcePlayerSuicide(client);
}

Can somone make an working SMX or SP of it? :)
So i can use it on my server on CS:GO.

Thanks! :)

Fuck For Fun 10-28-2015 09:32

Re: How too use this plugin
 
Wrong section, there is no source place

Link of source script help:https://forums.alliedmods.net/forumdisplay.php?f=107


All times are GMT -4. The time now is 18:10.

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