Raised This Month: $ Target: $400
 0% 

Block Buy for Individual Player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Apollyon
SourceMod Donor
Join Date: Dec 2007
Location: California
Old 05-03-2011 , 06:59   Block Buy for Individual Player
Reply With Quote #1

I have a plugin that will choose a random player from the TE team at player spawn. I would like to block that player from buying anything/anyway. The other players on that team could still buy. Can you show me an example of the code to use?

PHP Code:
public PlayerSpawn(id)
{
    new 
tPlayers[32], tPlayerNumname[32], id;
    
get_players(tPlayerstPlayerNum"e""TERRORIST");
    
    if(
tPlayerNum)
    {
        
id tPlayers[(tPlayerNum 1) ? random(tPlayerNum) : 0];
        
LeaderGlow(id);
        
get_user_name(idnamecharsmax(name));
        
ColorChat(0,RED"[%s] ^4%s ^1is Leader this round"PrefixNamename);
    }

__________________

Last edited by Apollyon; 05-03-2011 at 07:02.
Apollyon 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 04:28.


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