View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-28-2016 , 23:21   Re: Code styles - prefered, readability & performance
Reply With Quote #8

Quote:
Originally Posted by Mitchell View Post
Code:
public Action Some_Command(int client, int args) { if (!IsClientConnected(client)) { return Plugin_Handled; } if (!CVAR.BoolValue) { PrintToChat(client, "nope"); return Plugin_Handled; } if (GetClientTeam(client) != 1) { PrintToChat(client, "nope"); return Plugin_Handled; } return Plugin_Handled; }
courtesy of my fuckitup.py script.
This isn't JavaScript, you don't need to minify it. ;)
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline