05.09.2018, 00:27
Check if this variable is true when you use the command: LoggedIn[playerid].
PHP код:
CMD:b(playerid, params[])
{
if(!LoggedIn[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE : /b [Local OOC]");
new string[128];
format(string, sizeof(string), "(( [%d] %s: %s ))", playerid, NameRP(playerid), params);
SendLocalMessage(playerid, COLOR_GREY, string);
return 1;
}