11.11.2015, 00:54
If you have nothing else in the function OnPlayerCommandPerformed, you can use the ternary.
PHP Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
return (success ? 1 : SendClientMessage(playerid, -1, "Invalid Command! Check /CMDS for the commands list"));