Raised This Month: $ Target: $400
 0% 

Solved [L4D2] Spawn ghost infected players - Issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 09-13-2022 , 04:40   Re: [L4D2] Spawn ghost infected players - Issue
Reply With Quote #1

Thank you for your replay,

I ended up using left4dhooks

PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>
#include <left4dhooks>

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
    
RegConsoleCmd("sm_boomer"Command_Boomer"Spawn as a boomer ghost");
}

public 
Action Command_Boomer(int clientint args)
{
    if (
GetClientTeam(client) == && !IsPlayerAlive(client))
    {
        
L4D_State_Transition(clientSTATE_GHOST);
        
L4D_SetClass(client2); //2 = Boomer
    
}
    else 
PrintToChat(client"only dead infected can use this command");

__________________
alasfourom is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:59.


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