14.09.2018, 15:21
PHP код:
public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
{
if(!P[playerid][Logged] || !P[playerid][IsSpawned]) return 0;
return 1;
}
public OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)
{
printf("[CMD] %s", cmd);
if(result == -1)
{
SendClientMessage(playerid, 0xff0000ff, "*SERVER {ffffff}Unknown command. Please refer to /help");
return 0;
}
return 1;
}