When i say !stat, nothing happens...
Whats wrong?
function OnCommand(ID: Byte; Text: string): boolean;
begin
  if Text = '!stat' then begin
   SpawnObject(GetPlayerStat(1,'x'),GetPlayerStat(1,'y'),15);
  end;
  Result := false;
end;
i want this script spawns stat gun when i say !statÂ