Thread: [ANY] MuteCheck
View Single Post
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 08-23-2011 , 13:30   Re: [ANY] MuteCheck
Reply With Quote #10

Nice idea. Some notes:
The boolean tag is lowercase in sourcepawn. "bool:" instead of "Bool:".
When using #tryinclude, make sure to mark the autoupdate natives as optional in askpluginload2 to have the plugin compile if the include fails.

PHP Code:
if(StrEqual(buffer"@all") || StrEqual(buffer"@red") || StrEqual(buffer"@blue") || StrEqual(buffer"@alive") || StrEqual(buffer"@dead") || StrEqual(buffer"@humans") || StrEqual(buffer"@bots") || StrEqual(buffer"@ct") || StrEqual(buffer"@t")) {
    
ReplyToCommand(client"[SM] Usage: sm_mutecheck [target]");
    return 
Plugin_Handled;

You don't want those group targeting features?
Consider using FindTarget to allow a single target only.

For performance reasons, don't declare new variables in a loop, but do it beforehand.
__________________
Peace-Maker is offline