Raised This Month: $ Target: $400
 0% 

[NMRiH]Admins are not infected by zombie attacks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 04-07-2020 , 16:26   Re: [NMRiH]Admins are not infected by zombie attacks
Reply With Quote #3

Quote:
Originally Posted by Grey83 View Post
PHP Code:
public void OnPluginStart()
{
    
HookEvent("player_spawn"Event_Spawn);
}

public 
void Event_Spawn(Event event, const char[] namebool dontBroadcast)
{
    static 
int userIDclient;
    if((
client GetClientOfUserId((userID event.GetInt("userid")))) && GetUserAdmin(client) != INVALID_ADMIN_ID)
        
CreateTimer(1.0VaccinateAdminuserID);
}

public 
Action VaccinateAdmin(Handle timerany client)
{
    if((
client GetClientOfUserId(client)) && IsPlayerAlive(client))
        
SetEntProp(clientProp_Send"_vaccinated"1);

thank you
__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 is offline
 



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 03:28.


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