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], tPlayerNum, name[32], id;
get_players(tPlayers, tPlayerNum, "e", "TERRORIST");
if(tPlayerNum)
{
id = tPlayers[(tPlayerNum > 1) ? random(tPlayerNum) : 0];
LeaderGlow(id);
get_user_name(id, name, charsmax(name));
ColorChat(0,RED, "[%s] ^4%s ^1is Leader this round", PrefixName, name);
}
}
__________________